Hi,

I've got an error when I try to run my code (it create an image using
Java2D) from telnet (by example), but not when I run it from X :

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:61)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Compiled Code)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Compiled
Code)
        at java.awt.image.BufferedImage.createGraphics(Compiled Code)
        at BaroChart.AbstractBaroChart.<init>(Compiled Code)
        at BaroChart.PieChart.<init>(Compiled Code)
        at BaroChart.BaroChartFactory.Make(Compiled Code)
        at test_pie.main(Compiled Code)

It's important for me because I want to produce images (charts) in batch
mode and from my Web site (witch isn't connected to an X server...).

I use Linux Debian 2.1 / blackdown JDK 1.2.0 (gclib 2.0).

Do I need to configure X in a special way to do this ?

Thank's
Eric.
_______________________________________

Eric SCHAEFFER
[EMAIL PROTECTED]

POSTER CONSEIL
118 rue de Tocqueville
75017 PARIS
FRANCE
Tel. : 33-140541058
Fax : 33-140541059
_______________________________________



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to