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 25, 2007 6:00:15 am
List:net.java.dev.jna.users

This is really weird / sad : I've managed to get it working, without even setting LD_LIBRARY_PATH (both libraries are in /usr/lib anyway) but ONLY IN JRE 1.4 ?!?

Yes it works perfectly well provided I do a

System.load(/usr/lib/libpvm3.so) prior to retrieving my jna gpvm Library INSTANCE. But only if I'm running on java 1.4 (gcj JRE that comes with my ubuntu linux), not when using Java 5 :'(

So I loose a few of the language features I was using in Java 5 and this is not a good thing...

I'll try to install Java 6 see if it works again.

In the meantime, if you have a clue at what is going on feel free to share :)

Simon

PS : When setting LD_LIBRARY_PATH to /usr/lib, it doesn't work better in Java 5...

On Tue, 2007-07-24 at 13:09 -0400, Timothy Wall wrote:

On Jul 24, 2007, at 11:40 AM, Simon BASLE wrote:

Hi, For now I've given up resolving that weird issue. I'm sure that this missing symbol (pvm_pkbyte) is a function implemented in libpvm3 (I've done a jna binding that works for this one). I load libpvm3 prior to loading libgpvm and still it won't work. So I concentrate on other parts of my work for now, as libgpvm only contains a few methods. But still what a shame :'( JNI seems to have problems with dependencies, hasn't it? Well anyway I'll surely get back to you when I try again to solve this problem. Thanks a lot for your support :)

Does it work if you ensure both libraries are found in LD_LIBRARY_PATH?