Hello Darcy,
I was looking at the Jfreechart forum issues. I installed the windows version and it works great. (creation and generation of charts). However i cannot make it work on Linux and tomcat.
I get an Display Error as follows.
***********************
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.(X11GraphicsEnvironment.java:125)
************************
And when i do refresh again , i get
*************************
at com.jrefinery.chart.axis.Axis.(Unknown Source)
at com.jrefinery.chart.axis.ValueAxis.(Unknown Source)
at com.jrefinery.chart.axis.NumberAxis.(Unknown Source)
at com.jrefinery.chart.axis.HorizontalNumberAxis.(Unknown Source)
******************
I am working with jfreechart0.9.6, But tomcat has nothing to do with X windows. Iam not sure why i get this error !! Is it a bug in graphics library .
thanks,
goutam
Jfree chart creation error !!
Re: Jfree chart creation error !!
No, it has to do with the way that Java implements AWT and Java2D...for JDK 1.2 and 1.3, you need to have X11 running. In JDK 1.4, you can run in "headless" mode. There is more information in this thread:
http://www.object-refinery.com/phorum-3 ... 987&t=2987
Regards,
Dave Gilbert
http://www.object-refinery.com/phorum-3 ... 987&t=2987
Regards,
Dave Gilbert