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:Timothy Wall (twal@dev.java.net)
Date:Jul 17, 2007 10:10:03 am
List:net.java.dev.jna.users

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

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 !

Make sure the sister library is loaded prior to loading "foo". The system may try to do this automatically, but it will depend on LD_LIBRARY_PATH and fail if the library is not found in that path.

You can force the load either with System.load[Library] or with a JNA mapping.

JNA will try a few different common load paths to load your primary library, but it won't alter the system load path in order to load dependent libraries (Java does, and it's a mess).