the entries in the LD_LIBRARY_PATH must be colon separated
if your setting thru bash make sure you export LD_LIBRARY_PATH
If none that works take a look at these LD_LIBRARY_PATH diagnostics
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

M-
This e-mail communication and any attachments may contain confidential and 
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you 
are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, 
distribution or copying of it or its 
contents
----- Original Message ----- 
From: "Daniel Wildschut" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Saturday, November 18, 2006 4:12 PM
Subject: UnsatisfiedLinkError while using JNI


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello,
> I am using JNI to load a library which
> I use for a Web Service running on a Tomcat5.5-Server
> using Axis. My problem is that when I call a native function
> it immediatly fails with java.lang.UnsatisfiedLinkError:
> new_ParticleSocket__SWIG_0 ( new_ParticleSocket__SWIG_0 being the
> function called ). No further information is provided by the exception.
> After checking the obvious ( classpath and
> java.library.path/LD_LIBRARY_PATH, also checked if the library was
> loaded twice ) I checked the library itself ( which is generated by SWIG
> 1.3.29 ) using nm to see if all symbols were generated correctly ( which
> they were, the symbols are all in the form
> Java_edu_teco_particles_libParticle_libparticleJNI_* and in a standalone
> form without the prefix).
> 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.
> ( A lookup is performed on all libraries loaded before but not on the
> new library )
> I am using Debian GNU/Linux with Sun JDK 1.5.08
> 
> Any help would be appreciated
> 
> - Daniel Wildschut
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> 
> iD8DBQFFX3dDUS3Mvw9vkgURArBYAJ9HFskU8O8jSXvBibCA0X+mqv4FPwCbBIDk
> jRUTnbGR1+t+ejlH9OLCoTk=
> =VkIX
> -----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]
> 
>

Reply via email to