rahul the great
rahul the great

Reputation: 291

how to create a jmagick application

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

Upvotes: 0

Views: 10683

Answers (1)

armandino
armandino

Reputation: 18562

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.

Upvotes: 4

Related Questions