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


Solutions on the web

Solution icon of coderanch
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

Solution icon of oraclecommunity
via Oracle Community by 843830, 3 months ago
Need to specify class name in environmen t or system property, or as an applet parameter, or in an application resource f ile: java.naming.factory.initial

Solution icon of coderanch
via Coderanch by Frederic Filiatrault, 11 months ago
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

Solution icon of coderanch
via Coderanch by Palak Shah, 10 months ago
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

Solution icon of coderanch
via Coderanch by Vijay Gade, 10 months ago
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

Solution icon of coderanch
via Coderanch by Sarala Rajagopalan, 10 months ago
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

Solution icon of coderanch
via Coderanch by Pramod Kumar, 10 months ago
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

Solution icon of coderanch
via Coderanch by hani Ibrahim, 10 months ago
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

Solution icon of coderanch
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

Solution icon of coderanch
via Coderanch by Sonx Nkuks, 1 year ago
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

Stack trace

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(NamingManager.java:645)
	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
	at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
	at javax.naming.InitialContext.lookup(InitialContext.java:392)
	at Chat.<init>(Chat.java:19)
	at Chat.main(Chat.java:81)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
12 times, 3 months ago
2 times, 5 months ago
53 more bugmates