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!

Error Invalid magic number at calling native library at AIX

843829Feb 28 2007 — edited Mar 9 2007
Hi,

I have a Java app calling functions from a C/C++ shared library. At Sun and HP all works fine, but the same stuff returns the following error when calling under AIX:
java JIAK3smss
JIAK3sms.001I-Release 1.1.0 Start
Exception in thread "main" java.lang.UnsatisfiedLinkError: IAKJAVA ( 0509-026 System error: Cannot run a file that does not have a valid format.
0509-022 Cannot load module /u/iak/iak/lib/libIAKJAVA.a.
0509-103 The module has an invalid magic number.)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:956)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:925)
at java.lang.System.loadLibrary(System.java:452)
at JIAK.JIAKroot.<init>(JIAKroot.java:50)
at JIAK.JIAKbaseClient.<init>(JIAKbaseClient.java:51)
at JIAK.JIAKsms.<init>(JIAKsms.java:37)
at JIAK3smss.main(JIAK3smss.java:30)

I have created the shared library at AIX with Visual Age as described in the manual.
Both the shared library and Java is 32 Bit. I've looked a lot around, but I can't solve the problem!
Does anybody knows something about this problem (it seems only at AIX)?

FlimmFlamm

Message was edited by:
FlimmFlamm
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2007
Added on Feb 28 2007
3 comments
1,138 views