Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Other JSE/JEE APIs and the fly likes JMagick JNI problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JMagick JNI problem." Watch "JMagick JNI problem." New topic
Author

JMagick JNI problem.

Aniruddha Chaudhari
Greenhorn

Joined: May 19, 2010
Posts: 12
Hi,

I am trying to call C++ libraries in ImageMagick via jmagick JNI. I initially got an exception as
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 could not get 64 bit jmagick.dll that's why, I replaced 64 bit JDK by 32 bit JDK and thought it would work.
But, now its giving me similar exception with different description
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


I am unable to resolve the problem.
Any help would be highly appreciated.

Certifications: SCJP 6, SCWCD 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMagick JNI problem.
 
Similar Threads
java.lang.UnsatisfiedLinkError: \bin\ocijdbc11.dll: %1 is not a valid Win32 application
Time for a new Windows 7 PC : Any recommendation on specs?
eclipse doesn't run on vista (x64)
Unable to execute JNI in a 64 bit machine.
Can't load IA 32-bit .dll on a AMD 64-bit platform