我在windows下编译的程序在windows的jdk1.4中运行完全正确(画图程序),但是拿到sun的solaris环境下运行(jdk1.4.2),出现如下错误,请高手指点:
Exception in thread "main" 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:1
34)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java:62)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041)
at java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1031)
at com.egi.graphics.chart.ChartUtils.getBufferedChartImage(ChartUtils.ja
va:115)
at com.egi.graphics.chart.AutoChart.graphics(AutoChart.java:44)
at com.egi.graphics.chart.executeChart.main(executeChart.java:199)