发生错误,因为没有可用的图形环境

时间:2011-05-07 04:32:54

标签: flex xlib

当我尝试使用hudson和maven时,我得到以下错误,任何想法如何解决?

Xlib: connection to ":1.0" refused by server
Xlib: No protocol specified

[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An error occurred because there is no graphics environment available.  Please set the headless-server setting in the Flex configuration file to true.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.InternalError: An error occurred because there is no graphics environment available.

由于

1 个答案:

答案 0 :(得分:3)

<compiler>添加<{p>中的flex-config.xml标记下

<headless-server>true</headless-server>