Your questions regarding use of ant should go to ant mailing list. This has nothing to do with tomcat.
En l'instant précis du 02/02/07 13:35, [EMAIL PROTECTED] s'exprimait en ces termes: > I specify the -Djava.library.path as follows: > <target name="runtest" depends="compile"> > <echo message="Loading libraries1: ${java.library.path}"/> > <java classname="its.prolog.Test"> > <sysproperty key="java.library.path" > value="/opt/pkg/pl/lib/pl-5.6.6/lib/i686-linux"/> > </java> > <echo message="Loading libraries2: ${java.library.path}"/> > > and in the clasas its.prolog.Test I have this line > System.out.println(System.getProperty("java.library.path")); > which prints out the following java.library.path value: > ./opt/pkg/pl/lib/pl-5.6.6/lib/i686-linux > > That means the path I specified in build.xml associates to my current > directory? Is something wrong with this path? > <sysproperty key="java.library.path" > value="/opt/pkg/pl/lib/pl-5.6.6/lib/i686-linux"/> > > after the Test class has been run, the line <echo message="Loading > libraries2: ${java.library.path}"/> > prints out the normal java.library.path value: > /usr/lib/j2sdk1.5-sun/jre/lib/i386/client:/usr/lib/j2sdk1.5-sun/jre/lib/i386:/usr/lib/j2sdk1.5-sun/jre/../lib/i386 > > Why is it so? > > Thanks > > Gop > > > > ----- Originalnachricht ----- > Von: David Delbecq <[EMAIL PROTECTED]> > Datum: Freitag, 2. Februar 2007 1:09 pm > Betreff: Re: how to add a library path in build.xml? > > >> For execution classpath: >> http: >> >> For compilation classpath: >> http: >> >> En l'instant précis du 02/02/07 12:43, [EMAIL PROTECTED] >> s'exprimait en ces termes: >> >>> Dear all, >>> >>> I want to run an application which requires a special native >>> >> libray as >> >>> the following error shows: >>> >>> There was 1 error: >>> [java] 1) >>> >> testQuery(its.prolog.Test)java.lang.UnsatisfiedLinkError:> no jpl >> in java.library.path >> >>> [java] at >>> >> java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)> >> [java] at java.lang.Runtime.loadLibrary0(Runtime.java:822) >> >>> [java] at java.lang.System.loadLibrary(System.java:992) >>> >>> >>> This line tells me what my current library.path is: >>> /usr/lib/j2sdk1.5-sun/jre/lib/i386/client:/usr/lib/j2sdk1.5- >>> >> sun/jre/lib/i386:/usr/lib/j2sdk1.5-sun/jre/../lib/i386 >> >>> I would like to add a new library path to the current one. How >>> >> can I >> >>> specify that in build.xml? >>> >>> Thank you in advance >>> >>> Gop >>> >>> >>> >>> ------------------------------------------------------------------ >>> >> --- >> >>> To start a new topic, e-mail: users@tomcat.apache.org >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> -------------------------------------------------------------------- >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]