Native libraries aren't found in the CLASSPATH; in JDK 1.2, at least, they
can be explicitly specified by using the -Djava.library.path=.... directive
at the command-line, but I'm not sure how you'd set that from within Apache.
Is /usr/lib on the LD_LIBRARY_PATH?

I'd check to see that you can load the native code when executing the
servlet as a normal Java application (just to verify the naming conventions
of the exported methods are correct, for example), before tackling the
servlet issue on top of that. If you have already, my apologies.

Ted Neward
Patterns/C++/Java/CORBA/EJB/COM-DCOM spoken here
http://www.javageeks.com/~tneward
 "I don't even speak for myself; my wife won't let me." --Me

-----Original Message-----
From: Alfonso Urdaneta <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, July 27, 1999 5:29 AM
Subject: Re: related to jni


>JESS ZACHARIAS wrote:
>>
>> hi!
>>
>>   i'am encountering a problem while using native methods from my
servlets.
>> the servlet engine used is Apache_Jserv 1.0. the webserver is installed
on
>> linux.the shared library path is /usr/lib. when a request is made to the
>> native method the error got is unsatisfied link error. the file exists
and
>> also the permissions are set right.
>
>The native library is either not in the classpath, or fails to implement
>the appropiate functions.
>
>Try from a standalone app and see if that works - it will elimiate the
>servlet unkonws.
>
>Note too that the system classpath and the servlet engine classpath are
>not the same.
>
>ALfonso.
>
>
>--
>--------------------------------o0o-------------------------------
>Alfonso E. Urdaneta - Chief Whiner                Ph: 561.581.7360
>Integrated Visions                               Fax: 561.581.7377
>10315 102nd Terrace                [EMAIL PROTECTED]
>Sebastian FL, 32958
>http://www.integratedvisions.com
>
>"Time flies like the wind, but fruit flies like bananas"
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to