Under Linux, you need to set the LD_LIBRARY_PATH to include the
directory where libhello.so lives.
Mo Dejong
Red Hat Inc.
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?
> I need your help!
> Thank you very much!
> Boris :-)
>
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
>
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]