Eclipse 3.5 (Galileo) has recently been released, so I’m in process of rebuilding my development environment to run on it.  I was happy enough to go use the update sites to re-install CFEclipse and MXUnit, and the StarTeam (our company’s chosen Version Control software) plugin was able to seamlessly update the Galileo instance of Eclipse to include it’s plugin, but I ran into a snag when trying to update the Flex Builder 3 plugin.

When originally installing the Flex Builder 3 plugin for eclipse, I used the default path (i.e. C:\Program Files\Adobe\Flex Builder 3 Plugin\).  When I tried to re-run the installer, It reported that I already had a Flex Builder Plugin instance at that location, and would I please choose another directory.  Not wanting to clutter my hard drive with extra copies of the Flex Builder plugin, I decided to poke around and see what I could do to use the existing Flex Builder Plugin in my new Galileo installation.

What I eventually happened on was a very nice, clean way to install a single instance of an Eclipse plugin, and allow multiple copies of Eclipse use it.   It’s pretty straight forward, and assumes you’ve already got a copy of Eclipse installed, and a licensed copy of the Flex Builder 3 Plugin installed.

First off, navigate into your eclipse directory.  Mine is C:\Program Files\Eclipse\Galileo\ .  This should be the folder which contains your eclipse.exe file.  Under this directory, if there isn’t already a directory named “links”, create one. Navigate into the links directory.  Create a new text file named “com.adobe.flexbuilder.feature.core.link”.  Edit the file, and add the following contents to it:

path=C:/Program Files/Adobe/Flex Builder 3 Plug-in

Close the file, and start Eclipse.  Now go into your Window Menu, select “Open Perspective”, and “Other”, and you should see your Flex Development Perspective listed.  It’s even smart enough to pick up the license key from your previous installation, so you don’t have to dig out the old key to reinstall. However, for some reason, when I did this it lost my installed Flex SDKs.  To fix this, I went to the “Window->Preferences” dialog, and navigated to the “Flex->Installed SDKs” option.  I removed the two entries for “Flex 0.0″ which were listed, and re-added the two existing Flex SDKs: c:\program files\adobe\flex builder 3 plug-in\sdks\3.2.0 and c:\program files\adobe\flex builder 3 plug-in\sdks\2.0.1   You must mark one of these as default by clicking the checkmark next to it on the screen.  After this, click Ok, and you should be good to go.

If you’re doing ColdFusion development, don’t forget to also install the ColdFusion extensions for Eclipse at C:\program files\Adobe\Flex Builder 3 Plug-in\Installers\ColdFusion Extensions for Flex Builder, and JSEclipse is also pretty helpful at C:\program files\Adobe\Flex Builder 3 Plug-in\Installers\JSEclipse

  • Share/Bookmark

51 Responses to “Getting Flex Builder 3 plugin to survive a new Eclipse Version”

  1. Ralph says:

    Thanks for the tip. Unfortunately there is one thing that does not work on my computer. When I switch to Design view in the Flex editor this error message appears “This component is based on Application, which is not a visual component.”
    I found one page that references this error message: http://kb2.adobe.com/cps/406/kb406059.html
    But I’m using Flex Builder version 3.0.2.214193 and Flex SDK 3.3.0 and the tech note references an older version.

  2. admin says:

    That’s odd, I didn’t run into that. Does it only happen with Application components or with other MXML components too? It sounds like the Flex SDK might not be configured correctly, I might suggest removing it and adding it again.

  3. Ralph says:

    I reinstalled the Flexbuilder plugin and the design view works now with all the installed sdks.

  4. Chris says:

    I got the plugin working thanks to your article. But i have one issue: if i use the same workspace which i used in eclipse 3.4, then mxml files are not treated as mxml files. they are opened as text files. the content type is set in the preferences, i cant figure out a solution. did this occour with your workspace?

  5. Adam N. says:

    This didn’t occur for me, but just make sure that the “MXML Editor” is the default editor in the Window->Preferences dialog under General->Editors->File Associations for the *.mxml section

  6. Chris says:

    It was associated right. I solved this issue, by exporting the preferences with eclipse 3.4. Then edited the preferences file: removed all project file specific settings and removed all lines which where mxml occoured, except the ones which just set a color. Now it works, but now flex very often throws errors like “Classes must not be nested” and stops compilation. I can’t find any errors in the source code, seems to be a bug in the flex compiler…

  7. Chris says:

    I dont’ want to missuse the comments as a bulletin board ;) But i think this is interesting for others: now the Flex Builder plugin in Eclipse 3.5 show this “feature”: Errors are shown one by one. For example, if I remove a variable declaration, then it only shows the first occurence of the variable as an error. When i fix and build it, it shows the next one instead of showing all errors together. I switched back to Eclipse 3.4 now.

  8. Arei says:

    Just wanted to mention one other potential issue that I came across… Instead of creating the new com.adobe.flexbuilder.feature.core.link file in the links directory, I copied the old one over from my old 3.4 install, as they were identical. However, when I started Eclipse 3.5 it wouldn’t bring up the Flex stuff at all. After a few minutes of playing it occurred to me to touch the com.adobe.flexbuilder.feature.core.link file and resave it. This proved successful and all was well. My thinking is that eclipse generates an index of what it loads based on timestamps of the file. If the index is newer than the timestamp, it doesn’t need to update the index. By making the com.adobe.flexbuilder.feature.core.link more recent than the index, eclipse did a complete rebuild of its index and all was happy.

    Thanks for the guide.

    Arei

  9. oskarloko says:

    … my case is curious..
    I installed in Windows Eclipse JavaEE 3.5 and later the Flex PlugIn. Last one showed me a ‘can’t-configure-with-eclipse’ error, but it installed

    Then I looked into $ECLIPSE\links file, where the file com.adobe.flexbuilder.feature.core.link already exists; but when i opened it, it shows
    C:/$FlexPlugIn
    I changed it to
    path=C:/$FlexPlugIn

    And now works !

    :)

  10. Valeu cara!!!

    Exatamente o meu caso e funcionou perfeitamente com o Eclipse Galileo…

    Abraços!!!!

  11. Adnan Doric says:

    Well, I don’t understand how you can make eclipse 3.5 work with Flex 3. Don’t you have this bug :

    http://bugs.adobe.com/jira/browse/FB-21284

    Even if I make a new Flex Project, I immediately get the following error :
    “An internal build error has occurred. Right-click for more information.”

  12. Adam N. says:

    @Adnan I didn’t get that error with the flex SDK 3.0 that came pre-installed with Flex Builder for Linux. However, I tried upgrading to the 3.3 SDK recently, and I am now getting that error on projects using that SDK. I’m still digging through, trying to understand what could be causing that error. When I find it, I’ll post the results.

  13. Adnan Doric says:

    @Adam Thank you, I think it is somehow related to the compiler, I have no errors in ActionScript only projects …

  14. Anand says:

    Hi,
    I am new to Flex Builder and want to install plugin into eclipse 3.5. I have downloaded eclipse 3.5.0 and flex builder 3 eclipse plugin (FB3_WWEJ_Plugin). Can someone please let me know clearly how to install FB3 plugin into eclipse 3.5.0 ?
    Thanks,
    Anand

  15. Anders says:

    I have the same error (http://bugs.adobe.com/jira/browse/FB-21284 )with Eclipse 3.5 and Flex plugin 3.2. The same projects works fine in Eclipse 3.4.

  16. [...] in Eclipse 3.5 Galileo Posted August 4, 2009 Filed under: Eclipse, Flex | Just found this article describing how to run FlexBuilder 3 plugin in newer versions of Eclipse (3.4 & 3.5). Just [...]

  17. karthik says:

    Thank you for the instruction. very helpful. Keep writing.

  18. Laurie says:

    Wow, looks like a bug in Eclipse upgrade. My path was already in that file, but the “path=” part wasn’t so I added it and magically, Flex showed up in Eclipse! Thanks!

  19. Elizabeth says:

    Thank you so much for this post. Adding the link file worked!

  20. DT says:

    worked perfectly! Thanks for the tip!

  21. Candy says:

    i also added “path=” to get the copy/past link file working.

  22. Owen says:

    Very Helpful worked like a charm for me.

    Just needed to add the “path=” at the front of the file

  23. Julienb says:

    I have eclipse 3.5.1 running on my win xp platform. When I am trying to install the Flex builder 3 plug in, I get the message please choose an existing eclipse 3.2, 3.3 or 3.4 folder to be extended – even if I point to the right folder. If I “proceed with caution” – that´s one of the choice I have – the installation fails. Any Ideas if I need to install first Eclipse 3.4 or do something else to get it running?
    cheers

  24. Windcowboy says:

    Wonderful, worked perfectly, many thanks.

  25. [...] questa configurazione per vedere se non ci sono problemi ma per ora tutto sembra filare liscio: http://greylurk.com/index.php/2009/06/getting-flex-builder-3-plugin-to-survive-a-new-eclipse-version... Leave a [...]

  26. sleeps says:

    Worked like a charm. Thanks!

  27. ken says:

    Thanks for the article. I had to add the “path=” prefix too. Still can’t open any mxml files yet, getting ‘assertion failed’ error:

    org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed:
    at org.eclipse.jface.util.Assert.isTrue(Assert.java:179)
    at org.eclipse.jface.util.Assert.isTrue(Assert.java:164)
    at com.adobe.flexbuilder.editors.derived.editor.FlexMultiPageEditorPart.setActivePage(FlexMultiPageEditorPart.java:569)
    at com.adobe.flexbuilder.editors.common.editor.CodeAndDesignEditor.setActivePage(CodeAndDesignEditor.java:643)
    at com.adobe.flexbuilder.editors.mxml.MXMLEditor.setActivePage(MXMLEditor.java:483)
    at com.adobe.flexbuilder.editors.derived.editor.FlexMultiPageEditorPart.createPartControl(FlexMultiPageEditorPart.java:235)
    at com.adobe.flexbuilder.editors.common.editor.CodeAndDesignEditor.createPartControl(CodeAndDesignEditor.java:162)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:662)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)

    Will post if I find solution — thx.

  28. Adam N. says:

    @Julienb I haven’t actually done a new install of Flex builder plugin to version 3.5.1 of Eclipse. You might try checking the install log for any hints on what might be going wrong.

  29. frank says:

    when editing the file
    “com.adobe.flexbuilder.feature.core.link.txt”, should press key of RETURN(on windows), that is, add one more line
    BTW, this file is a text type file with suffix txt.

  30. ### says:

    Can you explain how to install the ColdFusion extension?

    I’m really new to eclipse, so I don’t know.

  31. JJ says:

    How to install the ColdFusion and JSEclipse plugin?

  32. [...] start so it looks something like this: path=C:/Program Files/Adobe/Flex Builder 3 Plug-in Thanks to greylurk for the original [...]

  33. Thanks for the Tip.

    Same problem as commented above with the “path=” sentence missing in com.adobe.flexbuilder.feature.core.link

    Eclipse Version: Version: 3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7
    Flex Builder 3 Version: 3.0.214193

  34. Ravi says:

    Its amazing. It solved my problem within 10 minutes. Before reading this page, I was wondering how to solve this issue.

    Thanks for sharing the tip.

  35. [...] 安装之后出现了问题,Eclipse插件根本没有加载,我在Getting Flex Builder 3 plugin to survive a new Eclipse Version找到了相应解决方案。 [...]

  36. Mukesh says:

    thanks for the tip..it works.. for me. I did exactly as you said

  37. prime says:

    add “path” and it works!! thanks 2 all

  38. Archana says:

    Thanks for posting this article. It helped me a lot.

  39. Rick says:

    While I was wondering how to make flex build 3 to work with Eclipse Galileo, your instructions helped me out. I only need to edit “path=C:/Program Files/Adobe/Flex Builder 3 Plug-in” for com.adobe.flexbuilder.feature.core.link in the links folder.
    Thanks.

  40. Ken says:

    I have it all installed and it works – except I cannot get the design view to show up. Eclipse 3.5 and Flex Builder 3 – any ideas?

  41. Adam N. says:

    Ken, make sure you’re in the Flex perspective, and you’ve associated .mxml files with the Flex editor. If you’ve got a different editor associated with MXML files, you wouldn’t see the design view.

  42. [...] still stuck using Eclipse 3.4 (Ganymede), or trying a number of manual install attempts, described here and here, neither of which worked for me. Ultimately, though, I’m not fond of hacky solutions [...]

  43. Ravi kumar says:

    Hi,
    I am new to Flex Builder and want to install plugin into eclipse 3.5. I have downloaded eclipse 3.5.0 and flex builder 3 eclipse plugin (FB3_WWEJ_Plugin). Can someone please let me know clearly how to install FB3 plugin into eclipse 3.5.0 ?
    How to i get flex builder with eclipse plugin… and i down loaded wtp source zip file from eclipse site in that no .exe file. How to i install WTP in my FB3 .. please let me…

  44. mcris says:

    Hi everyone i need your help!
    I successfully installed eclipse 3.5 and flex builder alpha 5 for linux. But upon creating my flex project an error occured:

    Could not open the editor: Assertion failed:
    i got that error

    so what would be the solution in that case?

  45. [...] 출처 : Getting Flex Builder 3 plugin to survive a new Eclipse Version [...]

  46. Keshav says:

    It wasn’t working for me when I added the following-

    path=C:/Program Files/Adobe/Flex Builder 3 Plug-in

    but instead I had to use -

    path=C:\Program Files\Adobe\Flex Builder 3 Plug-in

    to make it work!

  47. seamoh says:

    Thank you very much for this comment ,very very very nice and practical comment ,I have had this problem for two months and I hadn’t found any way ,this site helps me to solve my problem ,thank you thank you vvery much

  48. dilanka says:

    Thnx a lot. it worked. :)

Leave a Reply