Try the method load() with the absolute path, like
System.load("/home/my/path/MyNativeLibrary.so");

I think this is a problem a lot of people experienced.
Somebody just ask this question 3 days ago.
See my earlier reply to this mailing list.

Sheng-Yih.

----- Original Message -----
From: Dimitris Terzis <[EMAIL PROTECTED]>
To: 'Java-Linux mailing list' <[EMAIL PROTECTED]>
Sent: Tuesday, August 31, 1999 4:42 PM
Subject: Native library problem


> Hi guys...
>
> Someone give a hint please, because I 'm next to madness and I don't want
to
> break my machine... I have a very-very simple native library, say
test_lib,
> which I try to load with System.loadLibrary("test_lib"). The £$^£@&
compiler
> insists that it's not in java.library.path. I printed out this property,
and
> it does include the . directory. Is there any particular extension to the
> file I should supply (already tried .o and .so)?
>
> Thanks,
>
> Dimitris
>


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to