读书人

Exception in thread quot;AWT-EventQueue

发布时间: 2012-12-26 14:39:29 作者: rapoo

Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException:

Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
?

解决方案:

?? 增加这个在java启动参数里

    -Djava.awt.headless=true??

?

读书人网 >编程

热点推荐