>>>>> Mo DeJong writes:

    Mo> Under Linux, you need to set the LD_LIBRARY_PATH to include
    Mo> the directory where libhello.so lives.

Setting the system property java.library.path works too.  But the
library name has to be "libhello.so", "hello.so" will not work.

    Mo> On Tue, 2 May 2000, Boris wrote:

    >> I have meet the question about java programming on linux
    >> platform.  I will load 'hello.so' file in hello.class in
    >> following statement:
    >> static {
    >> System.Loadlibrary("hello"):
    >> }

    >> but when run hello.class by typing 'java hello',system show the
    >> following: Exception in thread "main"
    >> java.lang.UnsatisfiedLinkError: no hello in java.library.path
    >> .....
    >> 
    >> And I try another method :'java -Djava.library.path=. hello'
    >> system show the same message.  What is wrong?

See above.

The FAQ has some hints and examples:

http://www.blackdown.org/java-linux/docs/support/faq-release/FAQ-java-linux-4.html#ss4.5


        Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html
JVM'01: http://www.usenix.org/events/jvm01/


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

Reply via email to