I have a client and an EJB deployed in JBoss. They're in the same machine. My jndi.jar is in the same directory as my client and I have the following folder structure for my client
MyApp - Client - MyApp.java - jndi.properties
However, when I try to run my client program I get the following error...
Exception in thread "main" javax.naming.NoInitialContextException: Need to speci fy class name in environment or system property, or as an applet parameter, or i n an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.lookup(Unknown Source) at client.MyApp.main(Unknown Source)