Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JMagick not available #54

Closed
FiReTiTi opened this issue Jul 31, 2014 · 2 comments
Closed

JMagick not available #54

FiReTiTi opened this issue Jul 31, 2014 · 2 comments
Assignees

Comments

@FiReTiTi
Copy link

Hi,
I wanted to use the packages to improve imageio.
I downloaded all the packages. I can read the images correctly, but I have an error during the initialization:
Could not instantiate SVGImageReader (missing support classes).
java.lang.NoClassDefFoundError: org/apache/batik/transcoder/TranscoderException
at com.twelvemonkeys.imageio.plugins.svg.SVGImageReaderSpi.onRegistration(Unknown Source)
at javax.imageio.spi.SubRegistry.registerServiceProvider(ServiceRegistry.java:715)
at javax.imageio.spi.ServiceRegistry.registerServiceProvider(ServiceRegistry.java:302)
at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:211)
at javax.imageio.spi.IIORegistry.(IIORegistry.java:138)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:159)
at javax.imageio.ImageIO.(ImageIO.java:65)
at imageTiTi.ImageIO.Read(ImageIO.java:174)
at imageTiTi.ImageIO.Read(ImageIO.java:158)
at prototyper.Prototyper.main(Prototyper.java:324)
Caused by: java.lang.ClassNotFoundException: org.apache.batik.transcoder.TranscoderException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 10 more
JMagick not available: java.lang.NoClassDefFoundError: magick/MagickImage
Make sure JMagick libraries are available in java.library.path. Current value:
"/Applications/NetBeans/NetBeans 8.0.app/Contents/Resources/NetBeans/webcommon/bin::/Users/FiReTiTi/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:."

But even if there is this error, I can read the images.
But how can I fix this error?
Thank for your help.

@haraldk
Copy link
Owner

haraldk commented Jul 31, 2014

Hi,

The imageio-batik-<version>.jar and imageio-jmagick-<version>.jar are a little special, as they require 3rd party libraries to work. They have dependencies on specific versions of Batik and JMagick respectively (and these in turn requires more 3rd party libs or native ImageMagick binaries). Information regarding what JARs and versions you need are available in the POM (pom.xml) files of each sub-project. You should be able to download and find installation guidelines for each project on their respective home pages (https://github.com/techblue/jmagick and http://xmlgraphics.apache.org/batik/).

If you don't need SVG support or JMagick support, the easiest way to get rid of the messages, is to just remove the above mentioned JARs from class path. Everything else will still work just fine.

Best regards,

Harald K

@haraldk haraldk self-assigned this Jul 31, 2014
@FiReTiTi
Copy link
Author

Thank you for the answer. So far I don't need the packages, therefore I got rid of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants