Java is experiencing problems with ImageMagick processing pictures:
First of all, my system is WIN8, the following exceptions are I met one by one:
Exception 1:
Exception in thread "main" Java.lang.unsatisfiedlinkerror:f:\windows\system32\jmagick.dll:can ' t load IA 32-bit. dll on a AMD 64-bit Platform
Reason: My JDK is 64-bit, and Jmagick.dll is 32-bit, it is said that Jmagick.dll does not have 64-bit
Workaround: Replace the JDK and change the JDK to 64-bit.
Exception 2:
Exception in thread "main" Java.lang.UnsatisfiedLinkError:no Jmagick in Java.library.path
Cause: Jmagick.dll is not in the running environment
Workaround: Place the Jmagick.dll under the Bin directory under the JDK directory used to run it (why this is said to be used, because you can install multiple JDK versions, you can choose the JDK by MyEclipse debugging), if the Web program under Tomcat, you can put Jmagick The. dll is placed under the bin directory of the Tomat or the JDK used by the Tomcat runtime
Exception 3:
Exception in thread "main" Java.lang.unsatisfiedlinkerror:g:\program Files\java\jdk1.6.0_45_32\bin\jmagick.dll:can ' T find dependent libraries
Reason: Jmagick.dll was not found to have relied on the tool library (that is, Imagemagick-6.3.9-q8 installed DLL files)
Solution: Now I have not solved, for several hours, environment variables are set up is not.
Let's make a record here.
Java is the exception that is encountered when processing a picture with Jmagick