Java is the exception that is encountered when processing a picture with Jmagick

Source: Internet
Author: User
Tags imagemagick

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.