sesion bean client not running with comand line

This is a session bean client program created using Netbeans 5.0 and Sun Application Server 9.

Everything is normal as long as you run the client application from Netbeans.

I have been trying to run the .jar file (created by Netbeans) from the command line and the exception thrown is as following:

C:\Program Files\Java\jdk1.5.0_07\bin>java -jar CartClient.jar

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/logging/LogDomains

at com.sun.enterprise.util.ORBManager.<clinit>(ORBManager.java:78)

at com.sun.enterprise.naming.SerialInitContextFactory.<clinit>(SerialInitContextFactory.java:56)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:242)

at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)

at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)

at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)

at javax.naming.InitialContext.init(InitialContext.java:223)

at javax.naming.InitialContext.<init>(InitialContext.java:197)

at cartclient.Main.main(Main.java:45)

Somebody knows the reazon why this program run normal in Netbeans and the jar file doesn't

work using the command line.

[1333 byte] By [gosling] at [2007-11-26 12:03:52]
# 1
The solution to this problem is to add the following libraries to the session bean client:appserv-admin.jarappserv-deployment-client.jarappserv-ext.jarappserv-rt.jarjavaee.jar
gosling at 2007-7-7 12:29:34 > top of Java-index,Desktop,Developing for the Desktop...