1752580 Members
4794 Online
108788 Solutions
New Discussion юеВ

UnsatisfiedLinkError

 
Biao Hou_2
New Member

UnsatisfiedLinkError

Hi,
I am trying JNI on HPUX ia64. aCC(A.05.52) and JDK1.4.2 are installed.
SHLIB_PATH is set also.
When I run "java TestJava2CallingNative"
I got
% java TestJava2CallingNativer
Exception in thread "main" java.lang.UnsatisfiedLinkError: no aCCImpl in j
brary.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1419)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at TestJava2CallingNative.(TestJava2CallingNative.java:7)

Does any friend has this experience to overcome this problem?
Note: HPUX PA_RISC machine without any problem.
2 REPLIES 2

Re: UnsatisfiedLinkError

Hey,

try:
java -Djava.library.path= TestJava2CallingNativer

perhaps that works ;)

We sometimes get the same problem cause he doesn├В┬┤t get the SH_LIB path right. then it helps to set the library path manualy in your java comma
Wer meint gut zu sein hat es verpasst besser zu werden!
GRANDIERE
Frequent Advisor

Re: UnsatisfiedLinkError

I had a some close problem this my library libLibrairie.sl (SHLIB_PATH=/patch/myenv).
I called the methode like this

System.loadLibrary ("libLibrairie");

It did not work.

System.loadLibrary ("Librairie");

Works better because unix adds the prefix "lib" by its owns.
I hope it will help you
By.
Emmanuel