Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load library error with JNI

Status
Not open for further replies.

lijinfu

Programmer
Feb 20, 2001
3
GB
Dear expert,
I run a test JNI program under linux, till the very last step, I run java HelloWorld
error below:
ava HelloWorld
Exception in thread "main" java.lang.UnsatisfiedLinkError: /a/custard/export44/mscit/jil1/foo/old/libhello.so: /a/custard/export44/mscit/jil1/foo/old/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:6)
who know what is wrong with this?
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top