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)
PJA/Linux Can't connect to X11 window serve
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?
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?
