Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JNI: Native library cannot be loaded...


  • From: iilyas@xxxxxxxxxxxxxxxxx (Irfan ahmed)
  • Subject: JNI: Native library cannot be loaded...
  • Date: Mon, 30 Aug 1999 14:55:02 +0300 (Saudi Standard Time)

Dear list,

 While trying to load a native library (using
ystem.loadLibrary( <lib_name>) ), my SOLARIS java is giving me:

Exception in thread main. java.lang.UnsatisfiedLinkError: no <libName> in
java.library.path.  ....

The same code is working fine with windows jdk.

The things i already tried:

* set LD_LIBRARY_PATH=.  ( to the current directory, containing the solaris
native library)

* use  System.getProperties(); and then  setProperty( "java.library.path",
oldValue + ":.")
(even create problem with windows run).

Nothing works. Any idea????

Irfan

Note: the name of the library using in load statement is:   NativeAgent
The compiled library created with gcc:  libNativeAgent.so (as directed by
"Core Java II")