Put the directory
in the classpath not the file
I think you have to add the jnpserver.jar in your classpath.
By the way, I would try as following:
Try to create the context in the client like this:
Properties p = new Properties();
Context context = new InitialContext(p);
MyBeanHome home = (MyBeanHome) PortableRemoteObject.narrow(context.lookup("MyFirstBean"), MyBeanHome.class);
So you can see where the error will be thrown.
Hope this helps!
Tung Dang and Adrian ,with help you guys today I executed my first hello World EJB.tO execute this I have been Strugling since last two weeks.
Thanks again to Tung Dang and Adrian