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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web702

  • via Unknown by Saurabh Thapar,
  • via Unknown by Saurabh Thapar,
  • 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:662) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:344) at javax.naming.InitialContext.lookup(InitialContext.java:411) at ch04.p2p.QLender.<init>(QLender.java:34) at ch04.p2p.QLender.main(QLender.java:134)

    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

    KawadaKawada
    18 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    52 more bugmates