tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ihor Chumak <igor.chu...@gmail.com>
Subject Re: JNI error under tomcat: java.lang.UnsatisfiedLinkError
Date Mon, 05 Jul 2010 15:07:48 GMT
Had You tried to made c header by javah -jni
./your_packages/your_class.class ?
It gives header for You with properly named method to be written in c..

On Mon, Jul 5, 2010 at 4:11 PM, Konstantin Kolinko
<knst.kolinko@gmail.com>wrote:

> 2010/7/2 dennis ch <dennis.ch2010@gmail.com>:
> > Do I miss anything here?  Any input is appreciated!
> >
>
> IIRC, native libraries can be loaded only once,
> but webapplication classloader is disposed and recreated each time the
> web application is stopped/reloaded. Thus the class that loads your
> library must be in ${catalina.base}/lib folder (and at the same time
> it must be removed from the webapp, because otherwise the classes in
> webapp are preferred over the ones in lib).
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
best regards,
    Igor Chumak

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message