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

Hi !

I have tried to find an answer among FAQ, but had no luck.

I have a servlet which instantiates a class called Proto, which uses JNI.
For this purpose I have made a DLL called wwwProto.dll.

When I try to run it I get this error:
[
java.lang.UnsatisfiedLinkError: no wwwProto.dll in java.library.path
  at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:323)
  at org.apache.jserv.JServConnection.run(JServConnection.java:188)
]

I have been told that their are some restrictions in using JNI directly from
a servlet (?), thus I have put the Proto class in a jar file, and I have put
the jar file in d:\classes. The Proto class does the JNI-stuff. I have made
a "wrapper.classpath=d:\classes" in jserv.properties and my servlet DOES
find the Proto class.
The DLL is placed along with the Proto class (that is, I don't think there's
a place where I HAVEN'T put a copy of the DLL). Still, I get the same error
:o(

What to do? How do I set java.library.path properly?

Thanks, in advance!

cheers,
Michel Beauvais, Denmark


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to