I have the following target in my ant script:

<target name="execute" depends="compile" description="run the program">
                
  <java jar="${dist}/myClient.jar" fork="true" failonerror="true">
        <classpath>
          <pathelement location="${dist}/abc.jar"/>
          <pathelement location="${dist}/xyz.zip"/>
        </classpath>
        <sysproperty key="javax.net.ssl.keyStore" value="client.keystore" />
        <sysproperty key="javax.net.ssl.keyStorePassword" value="lakjflkdj" />
        <sysproperty key="javax.net.ssl.trustStore" value="client.truststore" />
        <sysproperty key="javax.net.ssl.trustStorePassword" value="oiruqoieur" 
/>
        <arg value="localhost" />
        <arg value="8443" />
  </java>

</target>

The abc.jar and xyz.zip are in the same directory (dist) and so is the 
myClient.jar file that I
want to run. But I get the java.lang.NoClassDefFoundError: name of class in 
abc.jar as the error
message.

The dist folder and the ant script is within the myProject folder. How can I 
fix this? TIA.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to