首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

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

2012-12-26 
Exception in thread AWT-EventQueue-0 java.awt.HeadlessException:Exception in thread AWT-EventQue

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

?

热点排行