当前位置: 技术问答>java相关
求救!发现X11GraphicsEnvironment错误!解决者500分重奖!!
来源: 互联网 发布时间:2015-07-06
本文导语: 现用java&jsp开发一个项目,涉及到图片转换等操作。原来在windows上测试通过,可是一放到unix上就编译不过,即使重新换了图形包,系统使用这个类的时候,也题是错误,loadimage时候总是发现x11...错误,十万火急! 希...
现用java&jsp开发一个项目,涉及到图片转换等操作。原来在windows上测试通过,可是一放到unix上就编译不过,即使重新换了图形包,系统使用这个类的时候,也题是错误,loadimage时候总是发现x11...错误,十万火急!
希望高手帮助!谢谢!
现错误如下:
/********** 使用jai 图形包 **********************************/
Internal error: Unexpected error condition thrown (java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment,sun/awt/X11GraphicsEnvironment), stack: java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName0(Compiled Code)
at java.lang.Class.forName(Compiled Code)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:63)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1016)
at nsw.imageProcessor.loadImage(imageProcessor.java:62)
at nsw.imageProcessor.brighten(imageProcessor.java:212)
at nsw.main.photo_Edition(main.java:544)
at _jsps._pho_edit_jsp._jspService(_pho_edit_jsp.java:373)
at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(Compiled Code)
at com.iplanet.server.http.servlet.NSServletRunner.Service(Compiled Code)
/******* 使用 jimi图形包 ************************/
Internal error: Unexpected error condition thrown (java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.,Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.), stack: 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
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName0(Compiled Code)
at java.lang.Class.forName(Compiled Code)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:63)
at
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName0(Compiled Code)
at java.lang.Class.forName(Compiled Code)
at java.awt.Toolkit$2.run(Toolkit.java:499)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:492)
at com.sun.jimi.core.JimiReader.getNextImage(JimiReader.java:713)
at com.sun.jimi.core.JimiReader.getImage(JimiReader.java:482)
at nsw.imageProcessor.loadImage(imageProcessor.java:92)
at nsw.imageProcessor.addBorder(imageProcessor.java:254)
at nsw.main.photo_Border(main.java:886)
at _jsps._modify_pho_bord_ok_jsp._jspService(_modify_pho_bord_ok_jsp.java:116)
at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(Compiled Code)
at com.iplanet.server.http.servlet.NSServletRunner.Service(Compiled Code)
希望高手帮助!谢谢!
现错误如下:
/********** 使用jai 图形包 **********************************/
Internal error: Unexpected error condition thrown (java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment,sun/awt/X11GraphicsEnvironment), stack: java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName0(Compiled Code)
at java.lang.Class.forName(Compiled Code)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:63)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1016)
at nsw.imageProcessor.loadImage(imageProcessor.java:62)
at nsw.imageProcessor.brighten(imageProcessor.java:212)
at nsw.main.photo_Edition(main.java:544)
at _jsps._pho_edit_jsp._jspService(_pho_edit_jsp.java:373)
at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(Compiled Code)
at com.iplanet.server.http.servlet.NSServletRunner.Service(Compiled Code)
/******* 使用 jimi图形包 ************************/
Internal error: Unexpected error condition thrown (java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.,Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.), stack: 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
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName0(Compiled Code)
at java.lang.Class.forName(Compiled Code)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:63)
at
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName0(Compiled Code)
at java.lang.Class.forName(Compiled Code)
at java.awt.Toolkit$2.run(Toolkit.java:499)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:492)
at com.sun.jimi.core.JimiReader.getNextImage(JimiReader.java:713)
at com.sun.jimi.core.JimiReader.getImage(JimiReader.java:482)
at nsw.imageProcessor.loadImage(imageProcessor.java:92)
at nsw.imageProcessor.addBorder(imageProcessor.java:254)
at nsw.main.photo_Border(main.java:886)
at _jsps._modify_pho_bord_ok_jsp._jspService(_modify_pho_bord_ok_jsp.java:116)
at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(Compiled Code)
at com.iplanet.server.http.servlet.NSServletRunner.Service(Compiled Code)
|
我没有用过Solaris,我提示一下,你的iplanet 6和图形化的程序使用的是同一个JDK吗?执行是同一个用户吗?会不会有权限和环境的问题?建议检查这些内容。
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。