The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

JNI error : Exec error format

Posted by Fabio on December 20, 2001 at 11:31 AM

Hi,
I'm using the native implementation to call c function in java, but every time that i try to load the library with System.loadLibrary an exception is raised:
java.lang.UnsatisfiedLinkError: /Adapter/test/jni_cas/libcas_client.sl: Exec format error
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at TestJava2CallingNative.main(TestJava2CallingNative.java:13)

Is there someone that knows why?

thanks,
Fabio





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us