-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

You need to put your JNI classes in your SYTEM-WIDE classpath. Not the
classpath of your servlet engine. It doesn't matter if you call them
directly or not.

-Darryl

> -----Original Message-----
> From: Matthew Ueckerman [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, August 19, 1999 9:05 PM
> To:   Java-Apache-Users
> Subject:      Problems using JNI again!
> 
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
> 
> 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?
> 
> Cheers lads.
> 
> 
> 
> --
> --------------------------------------------------------------
> 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]
> 


--
--------------------------------------------------------------
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]

Reply via email to