2011-05-07 22 views
2

當我嘗試使用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. 

感謝 尖銳

+0

任何輸入?任何文件來安裝Xlib? – Praceen 2011-05-08 23:39:27

+0

您是否嘗試遵循有關「無頭服務器」設置的消息中給出的建議? Xlib必須已經安裝,因爲它打印以「Xlib:」開頭的錯誤消息。 – alanc 2011-05-23 15:45:51

回答

3

flex-config.xml<compiler>標籤添加

<headless-server>true</headless-server> 
相關問題