Headless-server setting in flex-config.xml fixes error on automated build

Posted by Dennis on Oct 23, 2008 in Flex2 comments

I came across this error during an automated build on the server:


Error: An error occurred because there is no graphics environment available.  Please set the headless-server setting in the Flex configuration file to true.

This happens when the server isn’t hooked up to a monitor, mouse, keyboard, etc. The flex-config.xml file needs to be updated with this tag to solve this issue:


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

Read more here:
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=performance_118_41.html



Tags: , ,


2 comments

» Comments RSS Feed
  1. hi, This error may also appear when your flex-config is configured properly http://flexonjava.blogspot.com/2009/07/flex-compiler-displays-missleading.html

  2. This error appears for me in a Library Project, it doesn’t want that I use the headless-server as an argument for the compiler. That’s stupid. :(

Leave a comment