eclipse编译错误
我是在网上找的一个简单的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)
eclipse jboss ejb helloworld --------------------编程问答-------------------- 别的我看不懂
只是这个
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文件的第十四行
补充:Java , Eclipse