我是在网上找的一个简单的HelloWorld程序 EJB+JBOSS
请问下下面这个编译错误是什么意思啊?
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)
at com.jerrylab.client.Client.doLookup(Client.java:25)
at com.jerrylab.client.Client.main(Client.java:13)
Exception in thread "main" java.lang.NullPointerException
at com.jerrylab.client.Client.main(Client.java:14)
------解决方案--------------------
别的我看不懂
只是这个
Exception in thread "main" java.lang.NullPointerException
at com.jerrylab.client.Client.main(Client.java:14)
空指针错误。。。
找一找
Client.java文件的第十四行,看看哪个对象忘了实例化了.
------解决方案--------------------
Exception in thread "main" java.lang.NullPointerException:这句说是主方法空指针错误。
------解决方案--------------------
Exception in thread "main" java.lang.NullPointerException
at com.jerrylab.client.Client.main(Client.java:14)主方法空指针错误。是说main方法中哪个对象忘了实例化
------解决方案--------------------
Exception in thread "main" java.lang.NullPointerException
at com.jerrylab.client.Client.main(Client.java:14)
空指针错误。。。
找一找
Client.java文件的第十四行