tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janek Bogucki <jane...@yahoo.co.uk>
Subject Re: JNI libs and Tomcat?
Date Tue, 08 Jan 2002 16:25:49 GMT
 --- "Dr. Evil" <drevil@sidereal.kz> wrote: > 
> Hi, I'm trying to get Jmagick (a JNI interface for
> Imagemagick) to
> work with my favorite web server, which is Tomcat 4.
>  In the release
> notes, it says:
> 
> Applications that require native libraries must
> ensure that the
> libraries have been loaded prior to use.  Typically,
> this is done with
> a call like:
>  
>   static {
>     System.loadLibrary("path-to-library-file");
>   }
> 
> However, when I put in
> /usr/local/lib/libImagemagick.so in there, and
> put it in a Listener that starts when the app
> starts, I get an error
> that path separators are not allowed in the
> loadLibrary method.  I
> tried putting that library in the $TOMCAT/lib
> directory, and taking
> out the full path, and that didn't work.  Any
> sugestions?
> 
> Thanks!
> 
> --

try System.load instead of System.loadLibrary.

   static {
     System.load("/usr/local/lib/libImagemagick.so");
   }


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message