ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brendan Miller" <catph...@catphive.net>
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}"
              fork="true"
              />
    </target>

Gives me:
[java] Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/log4j/Logger

but
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message