“/usr/lib/libJMagick.so: libMagickWand.so.1: cannot open

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Ramu
Posts: 2
Joined: 2013-08-26T02:00:07-07:00
Authentication code: 6789

“/usr/lib/libJMagick.so: libMagickWand.so.1: cannot open

Post by Ramu »

I am trying to run a simple java program that resizes image using JMagick(ImageMagick). Installed 32-bit java on 64-bit Linux.

I am experiencing below error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/libJMagick.so: libMagickWand.so.1: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at magick.MagickLoader.<clinit>(MagickLoader.java:13)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at magick.Magick.<clinit>(Magick.java:21)
at ResizeImage.main(ResizeImage.java:11)

Linux version details:


Distributor ID: RedHatEnterpriseServer
Release: 6.1

Java version details:

java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode)

Please suggest how to resolve this
Post Reply