22 messages in net.java.dev.jna.usersRe: [jna-users] Unable to load a library
FromSent OnAttachments
Simon BASLEJul 17, 2007 6:12 am 
Timothy WallJul 17, 2007 9:16 am 
Simon BASLEJul 17, 2007 9:44 am 
Timothy WallJul 17, 2007 10:10 am 
Simon BASLEJul 17, 2007 10:12 am 
Timothy WallJul 17, 2007 11:18 am 
Nikolas LotzJul 18, 2007 1:27 am 
Simon BASLEJul 18, 2007 5:35 am 
Nikolas LotzJul 19, 2007 5:57 am 
Simon BASLEJul 19, 2007 6:07 am 
Nikolas LotzJul 19, 2007 9:08 am 
Simon BASLEJul 24, 2007 8:40 am 
Simon BASLEJul 24, 2007 8:40 am 
Timothy WallJul 24, 2007 9:55 am 
Timothy WallJul 24, 2007 10:08 am 
Simon BASLEJul 25, 2007 6:00 am 
Simon BASLEJul 25, 2007 7:33 am 
Timothy WallJul 25, 2007 7:53 am 
Timothy WallJul 25, 2007 7:58 am 
Simon BASLEJul 25, 2007 8:29 am 
Timothy WallJul 25, 2007 12:32 pm 
Timothy WallJul 26, 2007 2:44 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Unable to load a libraryActions...
From:Nikolas Lotz (nlo@nde.ag)
Date:Jul 18, 2007 1:27:42 am
List:net.java.dev.jna.users

On Jul 17, 2007, at 1:12 PM, Simon BASLE wrote:

Correction to previous message : it doesn't work in fact if I don't use the Java 1.4 version (that comes with my Ubuntu distribution, so it is not the sun implementation I think). If I do System.load("/usr/lib/libsister.so"); System.load("/usr/lib/libfoo.so"); it works (in java 1.4)... If I remove the first load (sister), it says that I have an "undefined symbol" (which is declared in the sister library). If I run it in java 1.5 I get the UnsatisfiedLinkError no matter what. This seems to have something to do with JNI itself but I you have an idea it is welcome :)

Try it in Java 1.6 and see if you get any more information in the link error. Try setting LD_LIBRARY_PATH to /usr/lib (this will likely work). Compare the value of java.library.path in both versions (you might dump all system properties and compare them for likely suspects).

I think there's also an envariable similar to LD_LIBRARY_PATH (LD_DEBUG?) which if set causes the dynamic linker to produce debug information.

check out this link for more information: http://wlug.org.nz/LD_DEBUG

start your program with 'LD_DEBUG=libs ...' and scan the output for error- messages. if that does not help, try 'LD_DEBUG=symbols ...' to see if there are any symbols which can't be resolved.

Vorsitzende des Aufsichtsrates: Angelika Mozdzen Sitz und Registergericht: Hamburg, HRB 90934 Vorstand: Jens-U. Mozdzen USt-IdNr. DE 814 013 983