You must specify a valid Flex application root folder when defining a Flex Builder site. Flex Builder puts files such as MXML, ActionScript, CSS, and image files in this folder in order to run and debug files at design time. If the folder is not a valid application root folder, Flex Builder will not work properly.
A Flex application root folder always has a WEB-INF/flex/ subfolder with a flex-config.xml file in it. For example, if you're using JRun 4 as the J2EE server, the application root folder is as follows:
jrun_root/servers/server/Flex_app
where jrun_root is the J2EE server's root folder, server is the name of a defined JRun server (such as "default"), and Flex_app is the application root folder. The Flex_app folder must contain a WEB-INF/flex/ subfolder with a flex-config.xml file in it, as follows:
Flex_app/WEB-INF/flex/flex-config.xml
For example, if you installed the Flex server on a Windows computer using the integrated JRun4/Flex install option, the application root folder of the default application is as follows:
C:\Program Files\Macromedia\Flex\jrun4\servers\default\flex
In this example, the JRun root (jrun_root) is C:\Program Files\Macromedia\Flex\jrun4\, the JRun4 server (server) is called default, and the Flex application (Flex_app) is called flex. The flex folder has a WEB-INF\flex subfolder with a flex-config.xml file:
...\flex\WEB-INF\flex\flex-config.xml
For more examples, see Examples of site settings.