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:Simon BASLE (simo@laposte.net)
Date:Jul 17, 2007 9:44:06 am
List:net.java.dev.jna.users

I ensured the library was a valid one. It seems to come from System.loadLibrary as it is also unable to load the library. On java 1.5 the error message is somewhat cryptic (Can't load IA 32-bit .so on a IA 32-bit platform) but it seems to come from the fact that this library depends on its sister... When I load this sister library before calling System.loadLibrary("foo") it works ! I've read that I should set the LD_LIBRARY_PATH environment variable but I also read that this is a bad idea (and I'd prefer to use java configuration variables anyway). Any idea on how I could go around the problem? Thanks Simon

On Tue, 2007-07-17 at 12:16 -0400, Timothy Wall wrote:

Ensure the library is a valid library and not a linker script; do

% file /usr/lib/libfoo.so.3

See if you can load the library via System.load/System.loadLibrary.

On Jul 17, 2007, at 9:12 AM, Simon BASLE wrote:

Hi, I've got an unsatisfied link error exception when I try to load one of the libraries I plan to use with jna... The associated error message is "unable to load library foo" I've tried with Native.loadLibrary and NativeLibrary.getInstance without success. I've even passed the whole path to the library ("/usr/lib/libfoo.so. 3") without any more success. Any idea? When I did the same with it's twin sister library it worked fine :( Thanks Simon