ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject Re: Setting classpath when executing jar file
Date Fri, 07 Jul 2006 14:41:03 GMT
>  <target name="run" depends="set-props">
>    <java fork="true" jar="${dist.dir}/${}"
> classpathref="libraries">
>        <arg value="${action}"/>
>    </java>
>  </target>

The problem is in fact that <java jar=""> always ignores any classpath
specified, because SUN's java does when using the -jar command line
switch. See the JDK Tools documentation (or my answer to the 'unusual'
post of the 4th of July...)

Use <java classname=""> to be able to specify a classpath. --DD

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

View raw message