ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brendan Miller" <>
Subject ant java jar="asdf.jar" fails to execute jar that java -jar asdf.jar succeeds on
Date Thu, 14 Aug 2008 02:51:42 GMT
<target name="run" depends="publish">
        <java jar="${files.publish.jar}"

Gives me:
[java] Exception in thread "main" java.lang.NoClassDefFoundError:

java -jar the_same_jar.jar
works fine.

I specify the path to log4j.jar as Class-Path: log4j.jar in the manifest.

What could be happening here?

How is jar lookup different between java -jar and <java jar=.../> ?

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

View raw message