-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I checked the classloader and indeed the problem was a classloader conflict ( the imported classes used the System-default ClassLoader, which lead to the problem ). I was able to place the call to LoadLibrary into a separate class which I put into the classpath. This solved the problem.
Thank you for your time & advice - - Daniel Wildschut Caldarale, Charles R wrote: >> From: Daniel Wildschut [mailto:[EMAIL PROTECTED] >> Subject: UnsatisfiedLinkError while using JNI >> >> I then used LD_DEBUG=all to check if the library was indeed loaded. >> There I found that the library was loaded however when JNI searches >> for the necessary function it does not search the newly loaded > library. > > This may be a classloader conflict. What triggers the loading of the > native library? If this is done under a classloader that's not in the > same branch of the tree that's now making the reference to the native > method, it may not be able to find it. Look at: > http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html > for Tomcat classloading info. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFX5auUS3Mvw9vkgURAolnAJ9g/TckEBJCaiSz7s4nS0lfDMBvZgCfdUUB aSL3e87jRRe9Av8L7WmFCKw= =Dt97 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]