[
https://issues.apache.org/jira/browse/BATIK-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
simon steiner resolved BATIK-1128.
----------------------------------
Resolution: Not A Problem
> 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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]