how to create a jmagick application

10.5k views Asked by At

I'm very new to jmagick. Can anyone help me out how to start a jmagick simple application ?

1

There are 1 answers

3
armandino On

java.lang.NoClassDefFoundError: Could not initialize class magick.ImageInfo

means that jmagick.jar is not on your CLASSPATH. You need to add it to the CLASSPATH.

In addition, you also need to install ImageMagick. It's the native library that does all the work. After installation you will need to set LD_LIBRARY_PATH environment variable that points to the location where ImageMagick was installed. The setup depends on what OS you're using. There are detailed instructions on the wiki. For a code example, see the link provided by Andrew. This should get you started.

Edit: How to install JMagick on Windows.