dcsimg
UnsatisfiedLinkError under 64 bit
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Subramanian_Ananthram
Posted On:   Monday, September 23, 2002 10:24 AM

Hi, I am using jdk 1.4.1 (Windows 64-bit (Itanium)). I compiled the dll under 64 bit environment. When I tried to call the DLL from my java program. I got the following error. //************************************ java -cp . TestKCS Exception in thread "main" java.lang.UnsatisfiedLinkError: C:subuKCSWrapper.dl l: %1 is not a valid Win32 application at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:832) at KcsWrapper.    More>>

Hi,

I am using jdk 1.4.1 (Windows 64-bit (Itanium)). I compiled the dll under 64
bit environment. When I tried to call the DLL from my java program.
I got the following error.
//************************************
java -cp . TestKCS
Exception in thread "main" java.lang.UnsatisfiedLinkError:
C:subuKCSWrapper.dl
l: %1 is not a valid Win32 application
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at KcsWrapper. (KcsWrapper.java:5)
at TestKCS.main(TestKCS.java:10)
//******************************
program to call the DLL:
public class KcsWrapper
{
static {
System.loadLibrary ( "kcsWrapper" );
}
public native byte[] sendData ( byte[] data , byte [] responseBuffer );
}
Thanks,
Subu

   <<Less
About | Sitemap | Contact