You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Yifan (Eric) Jiang" <e....@auckland.ac.nz> on 2007/06/26 01:26:44 UTC

How to add -Djava.library.path to tomcat

Hi,

 

I would like to load a library (.dll in windows and .so in linux) in a
Java application, so I have to add the path of the library to
LD_LIBRARY_PATH (Linux) or PATH (Windows). In addition, I also need to
add -Djava.library.path=. However this is only for a standalone java
application. But I'd like to deploy these applications as Axis web
services, so how can I do the similar thing in Tomcat? i.e. how can I
add -Djava.library.path in tomcat (in both Windows and Linux).

 

Thanks

 

Eric


Re: How to add -Djava.library.path to tomcat

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
set it in catalina.bat or catalina.sh

or you can define setenv.sh/setenv.bat in the bin directory with the line
set JAVA_OPTS=-Djava.library.path=.... (win)
and similar for unix

Filip


Yifan (Eric) Jiang wrote:
> Hi,
>
>  
>
> I would like to load a library (.dll in windows and .so in linux) in a
> Java application, so I have to add the path of the library to
> LD_LIBRARY_PATH (Linux) or PATH (Windows). In addition, I also need to
> add -Djava.library.path=. However this is only for a standalone java
> application. But I'd like to deploy these applications as Axis web
> services, so how can I do the similar thing in Tomcat? i.e. how can I
> add -Djava.library.path in tomcat (in both Windows and Linux).
>
>  
>
> Thanks
>
>  
>
> Eric
>
>
>   


---------------------------------------------------------------------
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