[Resolvido] Cliente do Glassfish

Pessoal,

Necessito da ajuda de vocês novamente, ei já li bastante coisas e nao consegui ainda, tenho uma aplicacao J2EE, com cliente desktop externo, porem dentro do netbeans executo o cliente, ele conecta com o servidor glassfish e roda tudo bem, mas quando tento executar o cilente fora da ide, o cliente lanca o erro descrito abaixo

C:\projetos\PDV\dist>java -jar LinearPDVClient.jar
10/12/2010 08:31:58 com.linear.linearPDV.conexao.ConexaoServer <init>
GRAVE: null
javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.enterp
rise.naming.SerialInitContextFactory [Root exception is java.lang.ClassNotFoundE
xception: com.sun.enterprise.naming.SerialInitContextFactory]
        at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
        at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
        at javax.naming.InitialContext.init(Unknown Source)
        at javax.naming.InitialContext.<init>(Unknown Source)
        at com.linear.linearPDV.conexao.ConexaoServer.<init>(ConexaoServer.java:
43)
        at com.linear.linearPDV.conexao.UsuarioCON.<init>(UsuarioCON.java:20)
        at com.linear.linearPDV.visao.Login.<init>(Login.java:36)
        at com.linear.linearPDV.visao.Login$7.run(Login.java:247)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.sun.enterprise.naming.SerialIni
tContextFactory
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)
        ... 16 more
mensagem 1Cannot instantiate class: com.sun.enterprise.naming.SerialInitContextF
actory
mensagem 2com.sun.enterprise.naming.SerialInitContextFactory

para fazer a conexao com o servidor, faço assim

Properties props = new Properties();
                props.setProperty("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory");

                props.setProperty("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");

                props.setProperty("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");

                props.setProperty("org.omg.CORBA.ORBInitialHost", "192.168.1.3");

                props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");

                ctx = new InitialContext(props);

                Interface = (GenericInterface<T>) ctx.lookup("com.linear.linearPDV.fachada.Inteface." + interfac);

Por favor se alguem souber como resolver me ajude

Pessoal, consegui resolver

a solucao esta neste link http://www.guj.com.br/posts/list/222463.java era so executar com appclient -client arquivo.jar