Unsatisfied Link error
843829Aug 27 2001 — edited Jul 26 2006Hi, I know that there are a lot of question related to this topic. But I couldn't find a solution to it.
I got this Unsatisfied Link error when I ran the program:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /.autofs/homes/guest1/jhuang/project/samples/JNI/libhello.so: /.autofs/homes/guest1/jhuang/project/samples/JNI/libhello.so: ELF file's phentsize not the expected size
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at HelloWorld.<clinit>(HelloWorld.java:5)
I have set the LD_LIBRARY_PATH to my shared library.
What is the problem here?
Thanks a lot!
Jim