java.lang.NoClassDefFoundError: com/jhlabs/image/UnsharpFilter


For the exception mentioned below;

Exception in thread “main” java.lang.NoClassDefFoundError: com/jhlabs/image/UnsharpFilter
at com.mortennobel.imagescaling.AdvancedResizeOp.filter(AdvancedResizeOp.java:84)
at ImageService.scaleImage(ImageService.java:21)
at ImageService.main(ImageService.java:31)
Caused by: java.lang.ClassNotFoundException: com.jhlabs.image.UnsharpFilter
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
… 3 more

You need to download Filters.jar (Java Image Processing Filters) from the following link;

http://www.jhlabs.com/ip/filters/download.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s