You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "simon steiner (JIRA)" <ji...@apache.org> on 2017/09/19 12:13:00 UTC
[jira] [Commented] (BATIK-1128) NoClassDefFoundError Could not
initialize class org.apache.batik.ext.awt.color.NamedProfileCache
[ https://issues.apache.org/jira/browse/BATIK-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16171584#comment-16171584 ]
simon steiner commented on BATIK-1128:
--------------------------------------
Try using:
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-rasterizer</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>xmlgraphics-commons</artifactId>
<version>2.2</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-codec</artifactId>
<version>1.8</version>
</dependency>
> NoClassDefFoundError Could not initialize class org.apache.batik.ext.awt.color.NamedProfileCache
> ------------------------------------------------------------------------------------------------
>
> Key: BATIK-1128
> URL: https://issues.apache.org/jira/browse/BATIK-1128
> Project: Batik
> Issue Type: Bug
> Components: javadoc, Samples, Scripting, SVG DOM, Utilities
> Affects Versions: 1.8
> Environment: Windows7, Maven 3.0, Batik 1.8
> Reporter: Chandra Sekhar Kakarla
> Priority: Blocker
> Labels: batik, java, png, svg
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> Facing issue while using Batik 1.8(SVG to PNG Conversion using java) and converting image from svg to png.
> bq. Not sure what is the issue with NamedProfileCache classes initialization
> My code is like below:
> {code}
> ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
> Reader stringReader = new StringReader(svgContent);
> TranscoderInput inputSvgImage = new TranscoderInput(stringReader);
> TranscoderOutput outputPngImage = new TranscoderOutput(byteArrayOutputStream);
> PNGTranscoder pngTranscoder = new PNGTranscoder();
> pngTranscoder.transcode(inputSvgImage , outputPngImage); {code}
> Maven Dependencies used:
> {code} <dependency>
> <groupId>org.apache.xmlgraphics</groupId>
> <artifactId>batik-transcoder</artifactId>
> <version>1.8</version>
> </dependency>
> <dependency>
> <groupId>org.apache.xmlgraphics</groupId>
> <artifactId>batik-codec</artifactId>
> <version>1.8</version>
> </dependency> {code}
> Getting below errow message while converting from SVG to PNG:
> {code}java.lang.NoClassDefFoundError: Could not initialize class org.apache.batik.ext.awt.color.NamedProfileCache{code}
> Please let me know what should we need to do to make it work properly...
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org