2013-10-14 51 views
0

刚刚在Netbeans中构建了一个java项目,我使用依赖于项目.jar中捆绑的SOAP的.jar,所以我怀疑问题在于我必须依赖的任何依赖项放在CLASSPATH或其他东西上。在调试器中或通过IDE运行完全正常。当我尝试运行我的内置JAR,我遇到这些错误:项目构建中缺少SOAP依赖关系

EXCEPTION: Class com.systinet.saaj.soap.SOAP11ProtocolHandler or one of its components not found in root.wasp-impl.SOAP 

Traces : 
===================== 
Class space : [email protected]([email protected]) : root.wasp-impl.SOAP : SOAP 
Class path : 

java.lang.ClassNotFoundException: com.systinet.saaj.soap.SOAP11ProtocolHandler 
java.lang.ClassNotFoundException: com.systinet.saaj.soap.SOAP11ProtocolHandler 

上午我有点想念我的只是建立未做任何奇怪的补充项目属性项目中创建SOAP请求的能力?我在这里错过了什么吗?

回答

0

很有可能您的IDE(Netbeans)具有为编译适当配置的类路径,但您的运行时类路径配置不当。您将受益于使用构建工具,如mavengradle