tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <de...@oma.be>
Subject Re: how to add a library path in build.xml?
Date Fri, 02 Feb 2007 12:42:54 GMT
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, compuin5y313@compuserve.de
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 <delbd@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
>>
>>
>>     
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message