我通过JBUILDER9打包成EXE,在引包的时候选择引所有的包,并且是Include all。打包后的EXE文件可以启动运行,看到窗体界面。
我的这个是通过Webservice链接远程服务端的一个程序,一点击连接就提示如下错误,不知如何是好,希望大家帮助。
java.lang.ExceptionInInitializerError
at org.apache.axis.client.Service.getAxisClient(Service.java:143)
at org.apache.axis.client.Service. <init> (Service.java:152)
at com.sundy.ws.InterServiceLocator. <init> (InterServiceLocator.java:10)
at com.sundy.ws.InterServiceTestCase.test15interGetCommand(InterServiceT
estCase.java:342)
at com.sundy.Webservice.DoClient.test15interGetCommand(DoClient.java:202
)
at com.sundy.Client.SetCommand.sendCommand(SetCommand.java:37)
at com.sundy.Client.ProvinceServerFrameThread.run(ProvinceServerFrameThr
ead.java:41)
Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullP
ointerException
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:355)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
at org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:7
6)
at org.apache.axis.handlers.BasicHandler. <clinit> (BasicHandler.java:81)
... 7 more
Caused by: java.lang.NullPointerException
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:543)
... 11 more
------解决方案--------------------
打包的问题我也很困扰,关注ING
------解决方案--------------------
这个程序没有严格按照打包的要求来做,我认为是资源的定位做得不够。
估计不能正确定位或者找到资源。
------解决方案--------------------
还没解决?