RE: SVG rasterizer 1.8 - NoClassDefFoundError when exporting PDF
"Jan Tosovsky" <[email protected]> Sat, 10 Dec 2016 13:12:26 +0100
| Newsgroups | gmane.text.xml.batik.user |
|---|---|
| Message-ID | <[email protected]> |
On 2016-12-09 Jan Tosovsky wrote: > On 2016-12-08 Michael Harris wrote: > > On 2016-12-07 Jan Tosovsky wrote: > > > > > > I've tried to convert my SVG file using Batik rasterizer using the > > > following command, but it ends with NoClassDefFoundError: > > > > > > D:\batik-1.8>java -Xmx512m -jar batik-rasterizer-1.8.jar -m > > > application/pdf horologium.svg > > > > > > Exception in thread "main" java.lang.NoClassDefFoundError: > > > org/apache/batik/dom/svg/SVGDOMImplementation at > > > ... > > > > > > There is a SVGDOMImplementation in 1.8, but for some reason it was > > moved to org.apache.batik.anim.dom. > > > > See: https://stackoverflow.com/questions/30092651/where-has-org- > apache- > > batik-dom-svg-svgdomimplementation-gone/30250306#30250306 > > Thanks for confirmation. So this change was not apparently propagated > to the PDF rasterizer :-( > To be honest, moving SVG DOM implementation into 'anim' package and moreover 'anim' module is questionable. As a developer I would be surprised by the request to include 'anim' module dependency in case I need to generate PDF even there is no animation in my SVG file. I'd rather expect to have a separate module svd-dom-impl with this stuff. And for consistency to rename svg-dom to svg-dom-api. Jan