xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ri...@umapinc.com
Subject Errors running Class file
Date Thu, 03 Oct 2002 19:08:58 GMT
Hi,
     I am now able to compile SaveAsJPEG.java and get a SaveAsJPEG.class 
When I run the SaveAsJPEG class to create the svg document it gives me the 
following errors:
What is X11 and do I have to use it to generate a jpeg image.


Errors:

Exception in thread "main" java.lang.InternalError: Can't connect to X11 
window
server using ':0.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at 
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:1
25)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:140)
        at 
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java:62)
        at 
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041)
        at 
org.apache.batik.ext.awt.image.GraphicsUtil.createGraphics(Unknown So
urce)
        at org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.genRect(Unknown 
Sourc
e)
        at 
org.apache.batik.gvt.filter.GraphicsNodeRed8Bit.copyData(Unknown Sour
ce)
        at 
org.apache.batik.ext.awt.image.rendered.TileCacheRed.genRect(Unknown
Source)
        at 
org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.drawBlockInP
lace(Unknown Source)
        at 
org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.drawBlock(Un
known Source)
        at 
org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.copyToRaster
ByBlocks(Unknown Source)
        at 
org.apache.batik.ext.awt.image.rendered.AbstractTiledRed.copyData(Unk
nown Source)
        at 
org.apache.batik.ext.awt.image.rendered.TranslateRed.copyData(Unknown
 Source)
        at org.apache.batik.ext.awt.image.rendered.PadRed.copyData(Unknown 
Sourc
e)
        at org.apache.batik.gvt.renderer.StaticRenderer.repaint(Unknown 
Source)
        at org.apache.batik.gvt.renderer.StaticRenderer.repaint(Unknown 
Source)
        at 
org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown S
ource)
        at 
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown S
ource)
        at SaveAsJPEG.main(SaveAsJPEG.java:22)


Thanks,
Riyaz



***************


>>Hi, 
>>     I have installed Batik 1.5beta4b on Sun linux Qube. I am trying to 
use the Batik transcoder. When I type the command: 
>>
>>javac SaveAsJPEG.java 
>>
>>It gives me a bunch of errors(see below). Am I not setting any 
environment variables prperly or am I missing something? 
>>
>>Help is appreciated. Also I am running J2SE v1.4.1 


 
Mime
View raw message