You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/01/15 12:21:22 UTC

DO NOT REPLY [Bug 5858] New: - Add tomcat dir to java.library.path

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5858>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5858

Add tomcat dir to java.library.path

           Summary: Add tomcat dir to java.library.path
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: hans.schlenker@first.fraunhofer.de


Hi!
There is currently no way to store native libraries within Tomcat such that Java
can load them. If I copy some native libraries from outside (using the Manager
tool), they have to go into a directory already known to the OS loader. This is
very inconvenient for several reasons (e.g. dlls that are only used by a webapp
have to be installed elsewhere; I may not have the rights to copy files into
some system path).
I suggest to add some standard Tomcat directory (e.g. $CATALINA_HOME/bin or
$CATALINA_HOME/lib) to java.library.path or alternatively to %PATH% or
$LD_LIBRARY_PATH, respectively. This must be done from outside Java (e.g. by
calling 'java -Djava.library.path=...') because it can't be set by an
application such that the VM loader respects this.
(Currently, I copy the files into the directory where Tomcat is started under
Windows, or patch Tomcat to include '.' in LD_LIBRARY_PATH under UNIX,
respectively.)

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>