ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chuanjiang lo" <lochuanji...@gmail.com>
Subject Re: Setting classpath when executing jar file
Date Fri, 07 Jul 2006 06:33:02 GMT
Thanks

Appreciate your help

On 7/7/06, Jan.Materne@rzf.fin-nrw.de <Jan.Materne@rzf.fin-nrw.de> wrote:
>
> >It seems like i'm not getting the classpath setting correctly
> >hence there is an error in executing my jar file..
> >    <!-- setting a reference -->
> >    <path id="libraries">
> >        <fileset dir="${lib.dir}">
> >            <include name="*.jar"/>
> >        </fileset>
> >    </path>
> >
> >  <target name="run" depends="set-props">
> >    <java fork="true" jar="${dist.dir}/${jar.name}"
> >classpathref="libraries">
> >        <arg value="${action}"/>
> >    </java>
> >  </target>
> >
> >When trying to execute the jar file, the classes in other jars
> >is not found.
> >How to correctly set the classpathref?
>
>
> http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html#ext-libs
>
>
> Jan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message