请教大师!!unix环境下gui的问题

03-10-23 friend
我在unix环境下写了个gui小程序,在window下

程序运行正常,但在unix环境下,却报了127.0.0.1:0.0

refused by server 的错误,不知那出了错?请大师

赐教!! QQ:228497633

robbin
2003-10-24 01:37
Maybe you should set DISPLAY variable properly, I think.

Describe your question clearly.

Sean
2003-10-24 10:30
Unix必须安装Xwindow 的input method,awt需要xwindow支持

所以你安装一个输入法就ok了

missxkl
2003-10-24 12:45
我的程序也是这个问题

一个基于java1.2 awt的servlet不能运行在hpux机器的weblogic上

我们的系统管理员告诉我x windows已经安装过了

那是什么原因?

我该怎么办,能否告知具体的步骤

还有楼上的,为什么要安装输入法呢?如何安装

thanks

missxkl
2003-10-24 12:57
贴出程序中的异常

<[WebAppServletContext(6641934,sxecase,/sxecase)] Servlet failed with Exception

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:63)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)

at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1011)

at com.sitech.graphic.CakeImage.<init>(CakeImage.java:105)

at com.sitech.graphic.CityCakeChartServlet.doGet(CityCakeChartServlet.java:105)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)

at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2546)

at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2260)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

猜你喜欢
2Go 1 2 下一页