QueTwo's Blog

thouoghts on telecommunications, programming, education and technology

Compiling the Apache Flex SDK with IntelliJ

I’ve only been using IntelliJ for a few weeks now, but I love it.  I see myself using this as my primary IDE for all things Apache Flex as time moves forward.

One question that has been asked quite frequently on the Apache Flex Dev mailing list is “How do I compile the Apache Flex SDK with IntelliJ?”  Well, since a picture is worth a thousand words, a video on the subject must be worth… umm.. (11 minute video, at 15 frames a second, times the value of pi… )  9,900,000 words!

Compiling Apache Flex SDK with IntellIJ

  1. Grab the Requirements :
    1. Java JDK 1.5, 1.6 or 1.7
    2. Adobe Open Source Flex SDK 4.6 (needed for the compiler at the time of writing)
    3. IntelliJ with ANT, Flex and Java plugins
  2. Create a new Project
  3. Create a new Java Module.  Name it anything you wish.
  4. Create a new Flex Module within that last Module.  It must be named “frameworks”
  5. Unzip the contents of the Open-Source Flex SDK into your Java Module EXCEPT the frameworks directory.
  6. Check the frameworks directory from the Apache SVN (https://svn.apache.org/repos/asf/incubator/flex/trunk) .  Make sure it ends up in the frameworks directory.
  7. Load up the ANT tab, and add the /frameworks/build_framework.xml  file.
  8. Hit the “Run” icon to start the compile.
  9. Drink a beer, or take a shower — depending on what the clock says.

After about 7 minutes or so (my computer compiles it all in 422 seconds on average), you should have a successful build, and a custom-compiled SDK!

NOTE:  The reason why we created two modules is so that you can create your own branch (or switch to somebody else’s branch) without having a whole lot of heart-ache.  All you would need to do is go to the framework module and change the branch you are checking out from.  This will allow you to create patches and submit them into JIRA against the current “patches” branch, instead of the trunk.


5 responses to “Compiling the Apache Flex SDK with IntelliJ

  1. Kirill Safonov (JetBrains) February 28, 2012 at 6:40 am

    Just to note that we’ve reworked the Flex project setup UI in IntelliJ IDEA 11.1. Now it’s more natural, clear and intuitive. Please find the details in JetBrains blog: http://blogs.jetbrains.com/idea/2012/02/new-flex-project-setup/


    • quetwo February 28, 2012 at 8:00 am

      I’m excited for the new version to come out 🙂 I’m glad you guys are putting in all the effort into making IntelliJ a great tool for Flex devs 🙂

  2. Kirill Safonov (JetBrains) February 28, 2012 at 8:11 am

    Thanks for the kind words, we really do 🙂
    EAP program for 11.1 has already started, latest build is available for download at http://confluence.jetbrains.net/display/IDEADEV/IDEA+11.1+EAP

  3. ApacheOmega October 5, 2012 at 6:56 am

    can you make a video on creating an application that has JAVA on the back end flex on the front and Coldfusion in between out of what you’ve just created in this video

    • quetwo October 7, 2012 at 9:52 pm

      Both ColdFusion and Java would serve the same purpose. I’m not quite following what you are asking for, but I’ve done quite a few write ups on communicating between Flex and Java/ColdFusion already.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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: