________________________________
From: Jan Tosovsky <j.tosov...@tiscali.cz>
Sent: Saturday, December 10, 2016 7:12 AM
To: batik-users@xmlgraphics.apache.org
Subject: RE: SVG rasterizer 1.8 - NoClassDefFoundError when exporting PDF

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-
[https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-i...@2.png?v=73d79a89bded]<https://stackoverflow.com/questions/30092651/where-has-org->

Where has org.apache.batik.dom.svg.SVGDOMImplementation 
gone?<https://stackoverflow.com/questions/30092651/where-has-org->
stackoverflow.com
In the documentation for batik, it shows how to get an instance of the DOM 
implementation from the class org.apache.batik.dom.svg.SVGDOMImplementation. 
However, after downloading Batik 1.8 from th...



> 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.

MG>refactoring artifacts to be repackaged into a different package is *supposed 
to follow spec change* e.g.

MG>DOM spec version 4 specified 19 Nov 2015 in https://www.w3.org/TR/dom/
W3C DOM4 - World Wide Web Consortium<https://www.w3.org/TR/dom/>
www.w3.org
This document was published by the HTML Working Group as a Recommendation. If 
you wish to make comments regarding this document in a manner that is tracked 
by the W3C ...


MG>for any other reason then you as a software professional and apache member 
should ask why?

MG>https://issues.apache.org/jira/browse/BATIK-1169?jql=project%20%3D%20BATIK

<https://issues.apache.org/jira/browse/BATIK-1169?jql=project%20%3D%20BATIK>MG>please
 let me know what the response is

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


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org

Reply via email to