Flex Builder 3 on Eclipse 3.5

UPDATE: Flash Builder 4 (the new version of Flex Builder) officially supports Eclipse 3.5. Download Flash Builder 4.

I recently tried to upgrade to Eclipse 3.5 on my Ubuntu Linux desktop. Unfortunately this caused some problems with the Flex Builder 3 for Linux alpha 4. According to the stack traces in Eclipse the main problems seemed to stem from the com.adobe.flexbuilder.project.compiler.internal.ProblemManager class. So I decided to re-write that class from scratch to see if I could make the problems go away. My new implementation of ProblemManager seems to have fixed the issues that I was seeing. I’ve only tested this on Linux so I’m not sure if it will fix any problems on Mac or Windows. Here are the instructions for fixing the problems with Flex Builder 3 on Eclipse 3.5 on Linux:

  1. Make sure you have installed Eclipse 3.5 and the Flex Builder 4 for Linux alpha 4
  2. Download the ProblemManager patch
  3. Unzip the ProblemManager patch file
  4. Locate where Flex Builder is installed – in my case: ~/flex_stuff/Adobe_Flex_Builder_Linux
  5. Update the com/adobe/flexbuilder/project/compiler/internal/ProblemManager.class file in <Flex Builder Install Location>/eclipse/plugins/com.adobe.flexbuilder.project_3.0.204732/zornproject.jar with the file extracted from the patch
  6. Start Eclipse 3.5
  7. Smile!

UPDATE: Instructions for Windows were posted on InsideRIA by Mike Slinn. Thanks Mike!

So far this works for me. But I’m sure there are some problems I haven’t discovered with it yet. So please let me know if you have any problems. Also if someone wants to check this on Windows or Mac let me know if it works there. If not then feel free to update the ProblemManager.java class so that it does work.

DISCLAIMER: This patch is totally unsupported by Adobe. Use at your own risk.

  • Anil Kadimisetty

    Very good tip..worked like a charm.


  • Great work man, you saved my life. Lol


  • RickP

    Great work…this worked for me on Eclipse 3.5, Ubuntu 10.04 LTS, FlexBuilder 3.0.257568.

    One nit though: there seems to be a trace to stdout from ProblemManager.java:

    what is arg1? arg1 =

    • Great! The trace is because in my clean room build of ProblemManager I didn’t know why one required method was there and what it did. Let me know if you uncover the mystery. :) You could always recompile the class without that System.out.println in it.

      • RickP

        Thanks…I tried recompiling the class but I’m not an expert in building Eclipse plugins, so I ran into dependency issues. Can you recommend a website or a reference somewhere to help?
        If I figure out what it is doing, I’ll let you know :).

        • The dependency thing is pretty tricky. Many times I just let Eclipse tell me what is missing and then I search around for the jar that has it. Not fun.

  • helios

    I had a working fb on linux with ganymede earlier.
    Today I have upgraded to helios on existing fb with 3 small changes and it is working fine.
    1. Patched fb_home/eclipse/plugins/com.adobe.flexbuilder.project_3.0.257568/zornproject.jar with http://www.jamesward.com/downloads/ProblemManager-jdk1.5.zip (Thanks James for this patch)
    2. copy and pasted old ganymede/links folder to helios/links folder.
    3. edit helios/links/com.adobe.flexbuilder.feature.core.linux.link file and prefixed with path=
    should look like path=

    ganymede – eclipse 3.4
    helios – eclipse 3.6
    fb – flex builder

  • Martin Shopland

    Thanks so much for this! Heroic work.

    It works like a charm on Vista (I know, don’t blame me) with Eclipse 3.5.2. I’ve also got PDT and Aptana installed and everything is playing nicely together.

  • Jony

    Dear Professor. James,

    I would be one of the idiot student of your whole list, who got passed, i still couldn’t make it done yet after 7 days of try.

    “UPDATE: Flash Builder 4 (the new version of Flex Builder) officially supports Eclipse 3.5. Download Flash Builder 4.”

    1. I dont see they got linux alpha 4 to download Flex Builder? new url: https://www.adobe.com/cfusion/tdrc/index.cfm?product=flash_builder

    2. Fedora 12, i got eclipse Version: 3.5.1
    Build id: M20090917-0800

    Also i got Aptana latest and greatest with Flex Builder

    Aptana eclipse we are talking here or Real eclipse from eclipse site we are talking here?

    Can you please point me a step by step kindly?

    Many thanks, thanks in advance

    Thank you

    • The Linux alpha has not been updated for Eclipse 3.5 / 3.6 nor has it been updated for Flex 4. I highly recommend IntelliJ or some other tool that has real Flex support on Linux. I’ve switch to IntelliJ.

  • Jony

    @James: Please look this two link, i am afraid why its not working?

    My tools:
    1. Eclipse Version: 3.5.1, Build id: M20090917-0800
    2. Flex Builder latest and greatest
    3. Fedora 12
    4. Your guide

    Screen shot: http://i.imgur.com/AvizW.png
    Steps i did: http://gist.github.com/493968

    Please advice..

    Thank you

    • You also need to follow these instructions:

      Fun stuff! I’ve actually switched to IntelliJ. :)

      • Max

        For other Linux users…

        I have been battling along with the alpha releases for flexbuilder 3 on Linux for some time. However a recent project in Flex4 has forced me to look for another solution.

        I would like to try IntelliJ but I haven’t got the cash at the moment so i’ve tried fb4linux (http://code.google.com/p/fb4linux/).

        It obviously lacks many of the features in Flashbuilder but since for my day to day stuff i am basically only interested in a decent editor (code completion, automatic management of imports, hints etc) and debugger, this does the trick.

  • Jamie Cramb

    Hi James / all,

    We’ve been using this fix with STS (SpringSource Tool Suite) 2.5.x, which is based on Eclipse 3.6.1, and the Flex Builder 3 Plug-in (3.0.2); however, we recently noticed an issue when trying to preview styles from CSS files in the design view… basically none of the UI components were rendering (e.g. the sample button states).

    I dug into this and it turns out it was because 3 methods were missing on the ProblemManager implementation (maybe these were introduced with Flex Builder 3.0.2):
    * public IProject getProject()
    * public IFile getApplication()
    * public int getErrorCount()

    Anyway, I’ve modified the version James provided and everything seems to be working fine now so feel free to use if you are still using FB3; the updated version can be downloaded from: http://www.articode.com/fb3patch/ProblemManager_fb3.0.2_jcramb.zip.

    Note: I’ve only tested with STS 2.5.1 & Flex Builder 3 Plug-in 3.0.2.

    DISCLAIMER: This patch is totally unsupported by Adobe / me. Use at your own risk. :-)


  • G.

    Thank you very much! Worked like a charm.

  • Thanks for the patch, works OK on Eclipse 3.5 + Flex Builder 3.0.257658 (ie. FB 3 for Linux alpha 5).
    Just one note: in your instructions in step#1 you wrote “Flex Builder 4 for Linux alpha 4” whereas you probably meant “Flex Builder 3 for Linux alpha 4”.

  • Joe Hoon Chung

    Hi, Mr. James. My name is Joe from South Korea. I have a error at my Flex builder and find a way to solve at this page. But I can’t find the file name “ProblemManager patch”. How can I get that file?? I know it is quite old to get that file but I really need to get that. So can u send me a that file? or teach me how can i get that?? If u give me anyway, i really appreciate it!!