When i use Jfreechart on linux ,the error happend and I guess if the xwindow if not install?
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:58)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Font.initializeFont(Font.java:264)
at java.awt.Font.<init>(Font.java:298)
at com.jrefinery.chart.Axis.<clinit>(Unknown Source)
at com.jrefinery.chart.ChartFactory.createVerticalBarChart(Unknown Source)
at syslog.reportChart.createChart(reportChart.java:83)
at syslog.reportChart.service(reportChart.java:243)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.caucho.server.http.Invocation.service(Invocation.java:291)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:121)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:333)
at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:266)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)
help me !
RE: help me !
There's some info here (in this forum):
http://www.jrefinery.com/forums/read.ph ... =908&t=908
Regards,
DG.
http://www.jrefinery.com/forums/read.ph ... =908&t=908
Regards,
DG.
RE: help me !
It's success to display but the Chinese is not correct ,that they are ¿Ú¿Ú¿Ú
I don't konw how to do it next???
I don't konw how to do it next???
RE: help me !
Hi John,
I recall someone else having this problem and it was the font that was the problem. Make sure the font you are using has the required characters...
Regards,
DG.
I recall someone else having this problem and it was the font that was the problem. Make sure the font you are using has the required characters...
Regards,
DG.
RE: help me !
I use this in redhet7.1 and jdk1.3
I only use some simple word in Chinese ,but it shows ¿Ú¿Ú¿Ú
Is it the font problem and what can I do?copy the font file to redhat?or do ..?
I only use some simple word in Chinese ,but it shows ¿Ú¿Ú¿Ú
Is it the font problem and what can I do?copy the font file to redhat?or do ..?