File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JMagick JNI problem." Watch "JMagick JNI problem." New topic

JMagick JNI problem.

Aniruddha Chaudhari

Joined: May 19, 2010
Posts: 12

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:
subject: JMagick JNI problem.
It's not a secret anymore!