Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unsatisfied Link error

843829Aug 27 2001 — edited Jul 26 2006
Hi, 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 23 2006
Added on Aug 27 2001
5 comments
293 views