S
Stryder
I'm trying to run a Java class in a jar file. The jar file contains this class:
com/exacttarget/wsdl/partnerapi/PartnerAPIStub.class
The manifest looks like this (not indented).
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.4
Created-By: 1.7.0_03-b04 (Oracle Corporation)
Main-Class: com.exacttarget.wsdl.partnerapi.PartnerAPIStub
All the main class does is print "hello world". It works (prints "Hello World") if I do this in the classes directory...
java com.exacttarget.wsdl.partnerapi.PartnerAPIStub
This same class is definitely in the jar file as demonstrated by this command...
bash-4.1$ jar tf PartnerAPI-test-client.jar |grep Stub.class
com/exacttarget/wsdl/partnerapi/PartnerAPIStub.class
bash-4.1$
but when I try to run the jar, with the environment exactly as it was when I ran the class separately, using this command...
java -jar PartnerAPI-test-client.jar
I get this error output...
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis2/client/Stub
Obviously I'm missing something. Any help would very much be appreciated.
com/exacttarget/wsdl/partnerapi/PartnerAPIStub.class
The manifest looks like this (not indented).
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.4
Created-By: 1.7.0_03-b04 (Oracle Corporation)
Main-Class: com.exacttarget.wsdl.partnerapi.PartnerAPIStub
All the main class does is print "hello world". It works (prints "Hello World") if I do this in the classes directory...
java com.exacttarget.wsdl.partnerapi.PartnerAPIStub
This same class is definitely in the jar file as demonstrated by this command...
bash-4.1$ jar tf PartnerAPI-test-client.jar |grep Stub.class
com/exacttarget/wsdl/partnerapi/PartnerAPIStub.class
bash-4.1$
but when I try to run the jar, with the environment exactly as it was when I ran the class separately, using this command...
java -jar PartnerAPI-test-client.jar
I get this error output...
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis2/client/Stub
Obviously I'm missing something. Any help would very much be appreciated.