PJA/Linux Can't connect to X11 window serve

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
bmoody
Posts: 9
Joined: Tue Nov 25, 2003 7:02 pm

PJA/Linux Can't connect to X11 window serve

Post by bmoody » Thu Jun 17, 2004 6:50 pm

I have a web app using JFreechart that runs across multiple platforms (HP, Sun, Win, AIX, Linux). On some Linux boxes the graphs display fine, however on others, only some of the graphs appear. Specifically, I display a meter graph followed by a bar chart followed by several thermometer charts. The weird thing is that the bar and thermometer charts appear but the first graph (meter) does not. I receive the following error listed below. Why would some graphs appear and not the meter graph? Since some of the charts appear, I do not think the following error is valid. The environment is Linuz/JBoss/JVM 1.3.1 IBM/jfreechart-0.9.18-SI.jar/jcommon-0.9.3.jar/PJA2.4.

I set the following when starting my app.
-Xbootclasspath/a:&VENDORS_DIR;/pja/2_4/pja.jar
-Dawt.toolkit=com.eteks.awt.PJAToolkit
-Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment
-Djava2d.font.usePlatformFont=false
-Djava.awt.fonts=&JAVA_HOME;//jre/lib/fonts


ava.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)

bmoody
Posts: 9
Joined: Tue Nov 25, 2003 7:02 pm

Post by bmoody » Thu Jun 17, 2004 7:37 pm

OK, I wanted to test to see if the meter chart was the problem. I replaced the meter chart with the same bar chart and both bar charts display ok but now one of the thermometer charts do not display. The same error is produced:

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)


any ideas? :(

Locked