• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting exception in jmagick

 
Venkatesh Ram
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have installed jmagic and copied jmagic.dll in ImageMagic directory.Then i copied jmagic.jar to lib directory of jdk i.e C:\Program Files\Java\jdk1.5.0_08\lib. itied one program.It compiled but showing run time exception as

Exception in thread "main" java.lang.UnsatisfiedLinkError: no JMagick in java.library.path
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 So
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at magick.Magick.<clinit>(Magick.java:21)
at JmagickTest.main(JmagickTest.java:8)


i posted my code for your reference I will be very thankful if anybody could solve my problem

my code

import java.lang.*;
import magick.*;
import java.util.*;
class JmagickTest
{
public static void main(String a[]) throws MagickException
{
ImageInfo info = new ImageInfo("tigerShereKhanOnLog.jpeg");
MagickImage image = new MagickImage(info);
image.setFileName("MyFile.jpeg");
image.writeImage(info);
}}

Thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and copied jmagic.dll in ImageMagic directory

Where did you copy this file to? The error complains that it's not in any of the directories of java.library.path.
 
Venkatesh Ram
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have copied under imagemagick directory i.e D:\venkat\tut\ImageMagick-windows\ImageMagick-6.3.3.Could you please help me.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!