Hi there, I'm trying to use Batik to render SVG files to PNG within an Oracle server. Unfortunately, it would appear that there is a problem with the Batik code trying to materialise AWT objects. I get the following backtrace while running Transcoding some my data:
java.lang.UnsatisfiedLinkError: no dcpr in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java) at java.lang.Runtime.loadLibrary0(Runtime.java) at java.lang.System.loadLibrary(System.java) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java) at java.security.AccessController.doPrivileged(AccessController.java) at sun.dc.pr.PathStroker.<clinit>(PathStroker.java) at java.awt.BasicStroke.createStrokedShape(BasicStroke.java) at org.apache.batik.gvt.StrokeShapePainter.getPaintedArea at org.apache.batik.gvt.StrokeShapePainter.getPaintedBounds2D at org.apache.batik.gvt.ShapeNode.getPrimitiveBounds at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedPrimitiveBounds at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds at org.apache.batik.gvt.filter.GraphicsNodeRable8Bit.getBounds2D at org.apache.batik.gvt.filter.GraphicsNodeRable8Bit.createRendering at org.apache.batik.gvt.renderer.StaticRenderer.renderGNR at org.apache.batik.gvt.renderer.StaticRenderer.updateWorkingBuffers at org.apache.batik.gvt.renderer.StaticRenderer.repaint at org.apache.batik.gvt.renderer.StaticRenderer.repaint at org.apache.batik.transcoder.image.ImageTranscoder.transcode at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode at org.bristol.cyps.svg.Convert.svgToPng(SVGTOPNG.java:28) I'll quote the Oracle documentation regarding their JVM implementation: "The GUI A server cannot provide GUIs, but it can supply the logic that drives them. For example, the Oracle JVM does not supply the basic GUI components found in the JDK's Abstract Windowing Toolkit (AWT). However, all AWT Java classes are available within the server environment. So, your programs can use AWT functionality, as long as they do not attempt to materialize a GUI on the server." -- http://download-uk.oracle.com/docs/cd/B10501_01/java.920/a96659/01_intro.htm#21495 Is it possible to do what I'm trying to do? Is it the case that Batik is trying to materialise AWT objects? And if so, is it necessary? Regards, Robert -- [EMAIL PROTECTED] 0117 92 22494 Analyst Programmer Children and Young People's Services IT Bristol City Council --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
