>>>>> Jacob Nikom writes:

    Jacob> Vijo Cherian wrote:
    >> 
    >> i did everything as mentioned...
    >> and at `java HelloWorld` , i got the following error
    >> 
    >> vijol@darkstar] ~/jni$ java HelloWorld
    >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no hello in
    >> java.library.path
    >> at java.lang.ClassLoader.loadLibrary(Compiled Code)
    >> at java.lang.Runtime.loadLibrary0(Compiled Code)
    >> at java.lang.System.loadLibrary(Compiled Code)
    >> at HelloWorld.<clinit>(HelloWorld.java:7)
    >> 
    >> what can be done to get this working?
    >> 
    >> i have libhello.so in the current directory and LD_LIBRARY_PATH points
    >> there, too.

Set the java.library.path property to the current directory:
$ java -Djava.library.path=. HelloWorld


        Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Porting Team
http://www.blackdown.org/java-linux.html


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

Reply via email to