Good Morning Dave

usually the binaries are located in %JAVA_HOME%/jre/bin
backup everything (jvm.cfg especially) you have beforehand
change LD_LIBRARY_PATH in jvm.cfg to point to the folder containing your DLL

(please verify this works as the signatures for JNI dll's need to conform to spec)
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- From: "David Kerber" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Wednesday, May 02, 2007 9:34 AM
Subject: Re: JNI in Tomcat6


Christian Becker wrote:

Hello Everybody,

i am currently developing a Servlet for Controlling my Winamp with my
Mobile.
The Library i want to use is jdic.
jdic uses JNI with a DLL

As Java Application, it is perfectly working.
But on my Tomcat6 i always get a Exception while Servlet Initialization:

java.lang.UnsatisfiedLinkError

This is caused while calling a Native Method.
I just tried several Places for the DLL but i always get the Exception.

Where do i have to place the DLL File, that the Classloader will find it?

The PATH Variable and a Subfolder \WEB-INF\libs seems to have no effects.

I'm not certain of this, but you could try putting it in your <jre_home>/lib/ext/x86 folder. That's where a 3rd party jni app that I use wants its .dll's.

Dave



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to