ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bala Paranj <>
Subject Specifying Jar files to execute program
Date Tue, 18 Jul 2006 16:08:29 GMT
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">
	  <pathelement location="${dist}/abc.jar"/>
	  <pathelement location="${dist}/"/>
	<sysproperty key="" value="client.keystore" />
	<sysproperty key="" value="lakjflkdj" />
	<sysproperty key="" value="client.truststore" />
	<sysproperty key="" value="oiruqoieur" />
	<arg value="localhost" />
	<arg value="8443" />


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

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message