UPDATE ON THE UPDATE: Flash Builder for Linux has been CANCELLED. There just isn’t a big enough Linux market for Adobe to dedicate so much effort to supporting the third platform. Eclipse is written in Java, true, but it never really lived up to the promise of “write-once run-anywhere”.
Adobe will no longer be investing in the development of a version of Adobe® Flex® Builder™ or Adobe Flash® Builder™ that runs on Linux operating systems. This decision is specific to Flash Builder and does not affect other Linux activities for other Adobe products. Linux developers will still be able to use the SDK from the line command to build Flex applications.
UPDATE! Official Flex Builder 3 for Linux!!
Check it out here!
The stuff below is left here for posterity’s sake…but you probably want the link above, and forget everything below…
With a bit of tweaking, I’ve gotten Flex Builder 2.01 working under Linux. Everything seems to work, including debugging, except for the Design view.
Here is a brief outline:
- Download and extract Eclipse. I used Eclipse SDK 3.2.2 NOTE: I could not get it to work when eclipse was installed in /usr. Unless you can figure it out, do not install eclipse via your OS, simply download the .tgz and extract it to your home directory.
- Download and extract the free Flex 2.01 SDK.
- Download and install the Flex Charting Components (same link as above) Run the installer by
java -jar flex_charting_2_installer.jarand install it to the root of your Flex2 SDK directory.
- Download the Flash 9 Debugging player
- install the plugin into your browser by running plugin/debugger/install_flash_player_9_linux/flashplayer-installer.
- (as root) copy standalone/debugger/flashplayer to /usr/local/bin
- create a symlink for gflashplayer, (as root)
ln -s /usr/local/bin/flashplayer /usr/local/bin/gflashplayer
- Download the FlexBuilder 2.01 Plugin for Linux (mirror)
- Extract this to the root eclipse install folder. It will create files in the configuration, plugins, and features directories which are already part of eclipse.
eclipse/configuration/com.adobe.flexbuilder/flexbuilder2.xmland change the value of <sdkpath> to point to the root directory where you installed the Flex 2 SDK
- (OPTIONAL) Fix the annoying ‘Incorrect flash player installed’ popup every time you run your project:
- Download debugui.jar
- Overwrite the file eclipse/plugins/com.adobe.flexbuilder.debug.ui_2.0.155577/debugui.jar with the downloaded one
- (OPTIONAL) Use the windows flash player with WINE instead of native linux flash player.
- Make sure you have WINE installed correctly
- Download the windows standalone projector debugger (see link at top for player downloads)
- Download this flashplayer script and place in your path, as well as rename the linux player so it doesn’t interfere. You probably still need the symlink to gflashplayer as above.
- (OPTIONAL) If you already use eclipse, it’s possible it wont see the new Flex plugins. Simply run the following command to get eclipse to search for your newly installed stuff:
- “./eclipse -clean”
That should be it! The only problem I’ve had is switching to design view messes everything up. Just stay in source view and you’ll be fine. Also, whenever I try to debug, it says I don’t have flash 9 installed, but I just press continue, and debugging works like normal (catching traces, breakpoint on crash, etc).
Somewhat related, this post talks about other ways of using Flex 2 / AS3 under linux.