help me !

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
john li

help me !

Post by john li » Mon Jan 28, 2002 3:49 am

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)

David Gilbert

RE: help me !

Post by David Gilbert » Mon Jan 28, 2002 9:18 am

There's some info here (in this forum):

http://www.jrefinery.com/forums/read.ph ... =908&t=908

Regards,

DG.

john li

RE: help me !

Post by john li » Mon Jan 28, 2002 10:18 am

Thanks a lot!!!

john li

RE: help me !

Post by john li » Tue Jan 29, 2002 3:14 am

It's success to display but the Chinese is not correct ,that they are ¿Ú¿Ú¿Ú

I don't konw how to do it next???

David Gilbert

RE: help me !

Post by David Gilbert » Tue Jan 29, 2002 10:03 am

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.

john li

RE: help me !

Post by john li » Tue Jan 29, 2002 12:58 pm

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 ..?

Locked