How to install Jmagick in linux

Source: Internet
Author: User
How to install Jmagick in linux-general Linux technology-Linux programming and kernel information. For more information, see below. Image processing is used in recent projects

So I used ImageMagick and encountered many problems during the installation process.

The system uses SUSE 10. Because it comes with the ImageMagick installation package, it brings a lot of convenience and direct

Install ImageMagick-devel jpg package and png package with yast.

The project is developed using Java, so JMagick is downloaded as an interface.

./Configure/make install/make test everything went well

However, a problem is found during the test. It is always reported that the Java. library. path cannot be found or a class cannot be initialized.

So I guess it is still a configuration problem.

I checked a lot of information and found the problem lies in java. library. if this Java variable is not configured to the specified Jmagick Link Library on path, an error occurs. You can write System in the program. getProperty ("java. library. path "); to obtain the value of this variable. It is true that the result is incorrect, but note that although the setProperty method can be used to set this variable, in addition, the program will not report errors, but this method is ineffective. You need to set this parameter when the Web server is started. Take Jboss as an example and modify run. sh-Djava. library. the path is added at the end; the location of the Link Library is normal after/usr/local/lib is set.

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.