Stop Coding!

The Unofficial Flex Compiler Blog

How To Setup Your Projects for HFCD

with 8 comments

Howdy, some developers are having difficulties setting up their Flex Builder projects to use HFCD. I hope to address this by producing more documentation in the coming weeks. In the meantime, I hope to use the following example to explain how to setup your projects for HFCD. It should be pretty straightforward…

This example uses one of the IBM ILOG Elixir samples, heatmap.

1. Assume that you have ILOG Elixir installed (e.g. /Applications/IBM/ILOG/Elixir 2.5). In Flex Builder, import “Existing Projects into Workspace”. Select /Applications/IBM/ILOG/Elixir 2.5/samples/heatmap. Check “Copy projects into workspace”.


2. Once the project is loaded, you should see in the HFCD console window that the heatmap project files are being ‘uploaded’ to HFCD.

[Thu Oct 22 12:40:12 EDT 2009] upload() count=2 total=541 time=1
[Thu Oct 22 12:40:12 EDT 2009] upload() count=74 total=1624755 time=66

Also, check out the project properties. Please take a look at ‘Flex Build Path’. You should see ilog-elixir.swc and ilog-elixir_rb.swc in the library path.


3. The SWC files are in /Applications/IBM/ILOG/Elixir 2.5/frameworks. But the heatmap project that you’ve just imported is in, e.g. in my case, /Users/clement/Documents/Flex Builder 3/elixir-sample-heatmap. The SWC files are explicitly specified and are not managed by the Eclipse resource manager. That means, HFCD would not know about them. In fact, any files that the project workspace does not know about would not be “uploaded” to HFCD. To address this issue, you can use the “HFCD FileSet” view.


4. Click ‘Windows’ –> ‘Other Views…’ and you should see the “HFCD FileSet’ view at the bottom. There is a pull-down menu at the top-right corner (that little inverted triangle) of the “HFCD FileSet” view. Click the pull-down menu and select ‘Add Directory’.


5. Add /Applications/IBM/ILOG/Elixir 2.5/frameworks to the “HFCD FileSet” view.


6. Go back to the pull-down menu and select “Upload Files”. This step “uploads” the SWC files to HFCD.

[Thu Oct 22 12:45:32 EDT 2009] upload() count=2 total=2486244 time=52
[Thu Oct 22 12:45:32 EDT 2009] upload() count=2 total=16330 time=2
[Thu Oct 22 12:45:32 EDT 2009] upload() count=2 total=14402 time=2
[Thu Oct 22 12:45:32 EDT 2009] upload() count=3 total=0 time=0
[Thu Oct 22 12:45:32 EDT 2009] upload() count=2 total=694230 time=14
[Thu Oct 22 12:45:32 EDT 2009] upload() count=4 total=0 time=0

The “HFCD FileSet” view will then show the number of files being “uploaded”.


Behind the scene, the files in /Users/clement/Flex Builder 3/elixir-sample-heatmap and /Applications/IBM/ILOG/Elixir 2.5/frameworks are copied to /Users/clement/.hfcd/files. It is where HFCD locates and compiles the files.

7. At this point, HFCD should have all the files it needs to compile heatmap. Now, start a new, clean build.


8. If there is nothing wrong, the heatmap app will be compiled successfully and you should see it in the “HFCD View” view.


9. Test the app by selecting ‘heatmap.html’ in the ‘bin-debug’ directory.


Hope you find this useful. Also, this previous post ( talks about the very same topic. Please check it out.


Written by Clement Wong

October 22, 2009 at 3:19 pm

8 Responses

Subscribe to comments with RSS.

  1. […] Flex Compiler API, HellFire Compiler Daemon, hfcd UPDATE: Please also check out this post ( on how to setup your projects for […]

  2. […] the installation, please check out this previous post (How To Setup Your Projects for HFCD). Most developers forgot to close and open their projects after switching to HFCD. A few of them […]

  3. Is it possible to set up HFCD to compile FDT projects as well?

    Simen Brekken

    November 16, 2009 at 5:41 am

    • No. not now. The reason is that FDT uses fcsh, not the compiler api to compile. Fortunately, it wouldn’t be hard for me to add a fcsh adapter for HFCD and I think I’ll add that very soon.

      Clement Wong

      November 16, 2009 at 8:57 am

  4. Hi,

    Under the HFCD FileSet view, it says
    – hellfire.admin.client.AdminClient(-1)
    – my file folder

    does it mean that HFCD is not running?



    December 16, 2009 at 10:09 am

    • Hi Joyce, Correct. (-1) doesn’t indicate that FB and HFCD are connected.

      Clement Wong

      December 16, 2009 at 4:19 pm

  5. Hi Clement


    Now, when I got the client and server connected, it cannot compile my main project, saying that it cannot find

    Pls advise? Joyce

    Merry Xmas


    December 17, 2009 at 12:12 pm

    • yea, that’s one of the bugs I alluded to in my recent post. It’s fixed and I hope to get the update out asap. sorry and thanks for your patience.

      Clement Wong

      December 17, 2009 at 1:00 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: