On Tuesday May 2, 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.

On the unix platforms, System.LoadLibrary("foo") will look for
libfoo.so on your library path. You should probably rename hello.so
to libhello.so .

The library path should contain a list of directories to search for
libraries. If libhello.so is in /users/boris/mylibs, then you should
have:

java -Djava.libarary.path=/users/boris/mylibs 

Hope this help!
-John

----------------------------------------------------------------
John Rousseau                               [EMAIL PROTECTED]
SilverStream Software                     Phone: +1 781 238 5564
1 Burlington Woods                          Fax: +1 781 238 5499
Burlington, MA 01803                 http://www.silverstream.com
----------------------------------------------------------------


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

Reply via email to