On Jul 25, 2007, at 9:00 AM, Simon BASLE wrote:
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 :'(
Have you tried Sun's JRE1.4? gcj is a substantially different
implementation, and there's no guarantee that manual library loading
works the same way in the two vendors' implementations.
PS : When setting LD_LIBRARY_PATH to /usr/lib, it doesn't work
better in
Java 5...
This seems odd. You might try writing a short C program that
dynamically loads libpvm3 using dlopen. If *that* fails, then you
rule out anything java-specific.
All JNA does is call dlopen with a few different library prefixes and
suffixes.