ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From not4google <>
Subject Adding multiple external JARS using Ant
Date Wed, 30 Sep 2009 11:22:01 GMT

Hi all

I have the following target:

	<target name="CreateExecutableJarFile">
		<jar destfile="XXX.jar">
			<zipfileset dir="build/classes" prefix="" />
			<zipfileset dir="lib" />
				<attribute name="Main-Class" value="com.x.y.z.Hello" />

When I run the JAR from the command line I get ClassNotFoundExceptions and
this is because some external JARS are not accessible. How can I add
numerous external JARS e.g. Spring.jar so this all works?
View this message in context:
Sent from the Ant - Users mailing list archive at

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

View raw message