You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by co...@compuserve.de on 2007/02/02 14:29:04 UTC
Fwd: Re: how to add a library path in build.xml?
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 <de...@oma.be>
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, compuin5y313@compuserve.de
> 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: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
>
> --------------------------------------------------------------------
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Fwd: Re: how to add a library path in build.xml?
Posted by Steve Loughran <st...@apache.org>.
compuin5y313@compuserve.de wrote:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
try fork=true to run stuf fin a new process
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org