----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Servlets that call native methods have to be in the system CLASSPATH; if
your servlet class is loaded dynamically by JServ, you'll get the
UnsatisfiedLinkError.
- Fernando
At 09:42 AM 11/1/99 +0100, you wrote:
>Hello everyone,
>
>has someone succesfully called some native method
>from servlet ?
>
>I have libFoo.so (in C) containing the void ping() method
>and when loadLibrary("Foo") and then call ping() it works
>just fine. No problems so far.
>
>However, when I do the same from servlet, the loadLibrary()
>throws nothing, but the ping() method throws
>
> java.lang.UnsatisfiedLinkError: ping
>
>I am running RH6.0 Linux with JServ-1.0 and Blackdown's
>jdk_1.1.7-v3-glibc-x86 JDK.
>
>I tried setting LD_LIBRARY_PATH manually to point it to the
>directory where the library is located and many other
>combinations with no success.
>
>Probably there is some special configuration trick needed here ?
>Or is it known not to work ?
>
>Any ideas/hints appreciated
>Michal
>--
>[EMAIL PROTECTED] +420/603/176-642
======================================
Fernando Salazar <[EMAIL PROTECTED]>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]