Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8
-
None
-
None
Description
the jar for batik-codec that's both in maven and in the distribution mirrors has a META-INF/services folder containing two files (RegistryEntry and ImageWriter) that point to classes inside the imageio package:
org.apache.batik.ext.awt.image.codec.imageio.ImageIOPNGImageWriter org.apache.batik.ext.awt.image.codec.imageio.ImageIOTIFFImageWriter org.apache.batik.ext.awt.image.codec.imageio.ImageIOJPEGImageWriter
However, the org.apache.batik.ext.awt.image.codec.imageio package is not included in the jar.
Both files have commented-out entries that would work:
#org.apache.batik.ext.awt.image.codec.png.PNGRegistryEntry #org.apache.batik.ext.awt.image.codec.tiff.TIFFRegistryEntry
This causes a ClassNotFoundException when trying to include images in a SVG file.