

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
22 messages in net.java.dev.jna.usersRe: [jna-users] Unable to load a library| From | Sent On | Attachments |
|---|---|---|
| Simon BASLE | Jul 17, 2007 6:12 am | |
| Timothy Wall | Jul 17, 2007 9:16 am | |
| Simon BASLE | Jul 17, 2007 9:44 am | |
| Timothy Wall | Jul 17, 2007 10:10 am | |
| Simon BASLE | Jul 17, 2007 10:12 am | |
| Timothy Wall | Jul 17, 2007 11:18 am | |
| Nikolas Lotz | Jul 18, 2007 1:27 am | |
| Simon BASLE | Jul 18, 2007 5:35 am | |
| Nikolas Lotz | Jul 19, 2007 5:57 am | |
| Simon BASLE | Jul 19, 2007 6:07 am | |
| Nikolas Lotz | Jul 19, 2007 9:08 am | |
| Simon BASLE | Jul 24, 2007 8:40 am | |
| Simon BASLE | Jul 24, 2007 8:40 am | |
| Timothy Wall | Jul 24, 2007 9:55 am | |
| Timothy Wall | Jul 24, 2007 10:08 am | |
| Simon BASLE | Jul 25, 2007 6:00 am | |
| Simon BASLE | Jul 25, 2007 7:33 am | |
| Timothy Wall | Jul 25, 2007 7:53 am | |
| Timothy Wall | Jul 25, 2007 7:58 am | |
| Simon BASLE | Jul 25, 2007 8:29 am | |
| Timothy Wall | Jul 25, 2007 12:32 pm | |
| Timothy Wall | Jul 26, 2007 2:44 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread 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 library | Actions... |
|---|---|---|
| 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







