tags:

views:

87

answers:

2

I am trying to run a program to call C++ libraries in ImageMagick using jmagick interface (JNI) from a java program. But I am getting following exception


Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.6.0_16\bin\jmagick.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform


I tried to search for jmagick.dll for 64 bit processors but couldn't find any. Could anybody suggest any solution or show me the path if 64 bit dll is available?

Thanks,

A: 

Remove your 64 bits JDK and install a 32 bits JDK. Final users will need a 32 bits JVM.

It's about the same thing when you want to develop with Java ME on a 64 bits processor.


Resources :

On the same topic :

Colin Hebert
A: 

Thank you for the suggestion. I did remove 64 bits JDK and installed 32 bits JDK. But now, I am getting same error with different description as follows:


Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Java\jdk1.6.0_21\bin\jmagick.dll: %1 is not a valid Win32 application


could you please help me resolving the problem?

chyaila