-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Matthew Ueckerman wrote:
>
> I'm having that exact same problem with JNI as documented in the FAQ - I'm
> receiving an unsatisfiedLinkError....
>
> According to the FAQ - 'Servlets using native libraries must be put in the
> classpath....' and the LD_LIBRARY_PATH must include the JNI libraries (i.e.
> .so files).
>
> In my scenario, servlets aren't using JNI directly, they are calling a class
> which calls another class that uses JNI, i.e. Servlet -> Class -> JNI Class
>
> Using the advice from the FAQ I've done the following:
> 1. Include the Servlet in the Classpath.
> 2. Include the Class in the Classpath.
> 2. Include the JNI Class in the Classpath.
> 3. Include the Library File in the LD_LIBRARY_PATH.
>
> Note that in each of the 3 cases I've tried including the file directory
> containers, the files themselves and both!
>
> Still no dice!
>
> Any ideas?
>
If you are running on linux, and have root access, you can cheat and
put the lib dir in the /etc/ld.so.conf (remember to rerun ldconfig) and
if it is your LD_LIBRARY_PATH being overridden somewhere that should
fix it. An analogous thing on solaris is to just stick the lib
in /usr/lib..
I was getting that same error awhile back when either it could not
find the jni class file or it couldn't find the dynamic lib, but
I can't remember which case it was, so double and triple check the
classpath (jserv & zone) as well.
--
Pat O'Neil - [EMAIL PROTECTED]
"Linux, where you want to BE, when Windows(tm) tells you where to GO!
--
--------------------------------------------------------------
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]