来源:http://www.rabuser.info/jmagick.php#english
更多内容链接:http://sourceforge.net/apps/mediawiki/jmagick/index.php?title=Installing_JMagick
This tutorial copes with setting up JMagick on Windows and Linux OS to use the ImageMagick Engine within Java Applications or Servlets. The examples are tested with Windows XP and Ubuntu. Other distributions may require little adaptions. Sun Java 1.6 will be used on both sample machines.
Windows Users may download the binaries first: exe und dll installer can be found at: http://imagemagick.org/script/binary-releases.php Linux User might prefer the sources, because I worry about most of the binary installs failing because of gcc versioning conflicts. That's why we download the source codde from: http://imagemagick.org/script/install-source.php#unix (ImageMagick.tar.gz) As You can see there, You can install it within the Shell this way:
#wget http://...Url to ImageMagick.tar.gz tar xvfz ImageMagick.tar.gz cd ImageMagick-* ./configure make make install make checkWith the newest Sources (February, 2009) no error came up.
Next, we install JMagic, which requires ImageMagick. You can describe JMagick as wrapper to provide the Objects - originally written in C - for Java developers. Look for jmagick-win-*-Q16.zip at http://downloads.jmagick.org/ to download and unpack. For Linux on the same page the source coddes cam ne found: jmagick-*-src.tar.gz is our candidate. Lets define the Java Paths for the bash before continueing.
export JAVA_HOME=/usr/lib/jvm/java-6-sun/bin/java export PATH=$PATH:/usr/lib/jvm/java-6-sun/binIn the case of ./configure failing, see the alternative below.
#wget ...jmagick...tar.gz tar xvfz jmagick*.tar.gz cd JMagick* ./configure make all make installAlternative for ./configure: ./configure --prefix=/usr/local/jmagick --with-java-home=/usr/lib/jvm/java-6-sun/ --with-java-includes=/usr/lib/jvm/java-6-sun/include/:/usr/lib/jvm/java-6-sun/include/linux/
Although we copied the binaries and .jar into the right directories, I suggest to add the jmagick.jar to the Java (Servlet) Application Project and add this line to Your java-Source Code: System.setProperty("jmagick.systemclassloader", "no");
Although ImageMagick itself is documented properly, the JMagick Wiki is very poor. Examples are missing, too, for lots of methods, JMagick provides. At the moment I am developing an application for graphics and image manipulation. It's not Open Source, but let me help You with experience.
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
http://boristechnicalnotes.blogspot.com/2008/10/installing-jmagick-639-on-windows-xp.html