I am developing one simple application in Eclipse to implement JMS. when I am working with it i am getting error:
Exception in thread "main" javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in 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)
Check if you have jndi.properties file in your classpath and appropriate entries in it, for instance it look's like there need be a value for java.naming.factory.initial property. Try to find out how this file should look like for server you are using.