Installing Flex Builder on Ubuntu 9.04

For my work I’ve been working with Adobe Flex. If you’re doing Flex development you (probably) work with Flex Builder. It has features a development tool should provide; code completion, design view, good integrated building/running of projects, debugging etc.

At work I’m tied to my Windows XP laptop, at home I work with Ubuntu Linux. Whenever I do Flex development in private time, I always use the Windows machine… but what if you’d like to develop Flex on Linux?

Google quickly pointed to Flex Builder Linux. ‘Yey! A Linux Flex builder!’ The release notes shows some (minor) inconveniences:

Unsupported Flex Builder Features

  • Design view
  • States view
  • Refactoring
  • Data Wizards
  • Cold Fusion – Data Services Wizard
  • Web Services introspection
  • Profiler

And some known issues:

  • Organize Imports removes necessary imports
  • The default version of Java installed in Ubuntu systems is GCJ. This is not supported by the Flex Builder Linux installer and the installation may fail on Ubuntu Systems. Please ensure you have an installed Sun JRE before installing Flex Builder Linux.
  • Getting a transparent window for AIR App depends on your Linux distro capabilities. You may need to turn-on some settings (ex: Desktop effects on Ubuntu 7.10) or install some special packages (example: compiz-fusion, beryl for installing compositing manager) to get this working (if its not working by default)

I left out anything not related to Ubuntu or Flex Builder in general. Besides the ‘design view’ most issues are minor issues. Usually the ‘design view’ is used for some initial drag and drop interface building or for containers with and ‘absolute’ layout  (i.e. Canvas). The ‘design view’ then limits the build/run/change cycles.

Installing Flex Builder on Ubuntu 9.04

The prerequisites mentioned by Adobe are

  • Eclipse 3.3.x (32-bit)
  • Sun JRE 1.5.x or newer (32-bit)
  • Firefox 1.0, 1.5, or 2.0 (32-bit)

At the moment of writing, the version of Eclipse provided with Ubuntu is 3.2.x. So you’ll have to get a newer Eclipse version from Eclipse.org. I tried the latest version available, which is 3.4.2 (which later turned out to be a bad idea, use a 3.3.x version). Installation of Eclipse is as easy as unpacking to the desired location, so I’m not describing that any further. Make sure you have the Sun JRE 1.5.x or newer installed. I installed ‘sun-java6-jdk’ via the package manager, the JDK includes the JRE. Configure Eclipse to use that.

JRE settings Eclipse

JRE settings Eclipse

Download the Flex Builder Plugin for Linux.

Installing Flex Builder Linux

To install Flex Builder Linux:

  1. Prior to installing, remove any previous versions of Flex Builder Linux. Refer to the section ‘Uninstalling Flex Builder Linux’ below for instructions.
  2. Run the installer either marking it as executable (chmod +x) or by using a shell to execute it (sh FlexBuilder_Linux_Plugin.bin).
  3. Accept the license agreement and follow the prompts.
  4. When prompted, specify whether to install Flash Player 9 (note that this is an updated version of Flash Player 9 and that Flex Builder Linux will work with earlier versions of Flash Player 9 for Linux). This is the debug version of Flash Player 9, which is required for debugging support and exception display.
  5. Follow the prompts to complete the installation.
  6. Start Eclipse.
    Note: You must create a new workspace before beginning. Select File > Switch Workspace from the menu bar and enter a new folder name. If the folder doesn’t exist, Eclipse creates it.

Install Folder

Install Folder

When choosing the ‘install folder’ you can leave that to default, the Eclipse folder will be defined in the next window.

Eclipse Folder

Eclipse Folder

As described select the Eclipse folder, it must contain a subfolder named ‘configuration’. Continue the installation untill the installer displays that you’re done.

Start Eclipse and open the Flex perspective. If you get the following error while opening a MXML file:

Could not open the editor: Assertion failed:  org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed

Make sure you have the correct Eclipse version, I used 3.3.2 on Ubuntu 9.04.

Flex Builder Linux

Flex Builder in Linux with code completion

It seems Flex Builder accepts Flex 3 license keys, which is then ignored as it still displays “Flex Builder Linux will expire in xxx days.” If you use charting you can enter your license to remove the trial message.

You already choose to use the trail period and didn’t enter your license key? Open ‘license.properties’ in  ‘home/username/.adobe/Flex’. And add:

flexbuilder3=yourlicensekey

Or change:

flexbuilder3.displayedFirstLaunchMessage=true

to:

flexbuilder3.displayedFirstLaunchMessage=false

Restart Flex Builder and enter your license key in the launch message.

15 Responses to “Installing Flex Builder on Ubuntu 9.04”

  1. cheguevara Says:

    i’m a big fan of Ubuntu ,i know it’s required to have Eclipse 3.3.x ,but the problem is i can’t find a link to download it.So , can you help me please, i’m desperate , maybe a little bit.
    Thanks.

  2. cheguevara Says:

    By the way , i’m a big fan of real madrid including Arjen Robben, Wesley Sneijder, Klaas-Jan Huntelaar, Rafael van der Vaart and the big Ruud van Nistelrooy.From the begining when a saw your name i know you are from Netherlands,Nice country.

  3. Mark Says:

    Hi cheguevara,

    Eclipse 3.3.2 is downloadable here: http://archive.eclipse.org/eclipse/downloads/drops/R-3.3.2-200802211800/index.php

    You probably want this file: http://archive.eclipse.org/eclipse/downloads/drops/R-3.3.2-200802211800/download.php?dropFile=eclipse-SDK-3.3.2-linux-gtk.tar.gz

    And yes, I’m from the Netherlands. We do have nice soccer players :)

  4. cheguevara Says:

    man ,you rock.
    Earlier i did find a link but it was to slow,So i’m grateful.
    thanks again.
    Keep going Man…

  5. cheguevara Says:

    This method that you posted still working for Ubuntu 8.04.

  6. James Ward Says:

    Please go vote for full Flex Builder on Linux:
    http://bugs.adobe.com/jira/browse/FB-19053

    Thanks!

    -James

  7. Wilian Fiabani Says:

    Cacete, não consegui instalar e só tem gringo aqui :(
    Ó meu deus, e agora, quem poderá me ajduar?
    hauehuaehu……

  8. Mark Says:

    Hi Willian,

    My Portuguese is a bit rusty… ;)
    This is what Google translates:

    Damn, can not install and has only gringo here: (Oh my God, now, who can I ajduar? Hauehuaehu ….

    What’s the exact problem you have?

  9. Wilian Fiabani Says:

    hey Mark, my english is bad, but my problem is what i dont understand to resolve the problem when i try to open a mxml file. if you can to help me, help me and set me happy!!! :)

  10. Mark Says:

    What’s the error you get when opening the mxml file?

  11. Vikas Says:

    hi ,
    Many many thanks for this great tutorial…. it is awesome.. no idea of flex or anything related to it… found your tutorial through google. and installed and ran a app in just less than 30 min.. that too download time included…

    One of the finest tutorial on installation i have ever seen..

    many many thanks….

    Keep rocking and posting such awesome great articles…

    by the way i use Eclipse 3.3.0 it worked !!!

  12. jmiguel77 Says:

    Hi

    i have installed the flex trial, now i got the serial number

    but after i try to register it, the screen tells me that the number is invalid and then close the window

    but the code editor does not show the code and in the lef bottom corner of eclipse the “Flex Builder Linux has expired” message still appears

    what can i do ???

  13. Mark Says:

    If the number is invalid then probably it won’t let you use it.

    You could try to set flexbuilder3.displayedFirstLaunchMessage=false in ‘license.properties’ in ‘home/username/.adobe/Flex’.
    Start Flex Builder and choose Trial… or enter a valid number ;)

  14. mcris Says:

    Hi mark how are you?I need help about eclipse 3.5 and Flex 3 alpha 5. i successfully installed the two but when i created a flex project i got this error:

    Could not open the editor: Assertion failed:

    What is the possible problem here?and the solutions i need to fix this error?thanks a lot

  15. Mark Says:

    Hi Mcris, for alpha 5 you need Eclipse version 3.3.x (http://labs.adobe.com/downloads/flexbuilder_linux.html), if you use a higher version you will get the ‘Assertion failed’ error.

    Try this Eclipse version: http://archive.eclipse.org/eclipse/downloads/drops/R-3.3.2-200802211800/download.php?dropFile=eclipse-SDK-3.3.2-linux-gtk.tar.gz

Leave a Reply

Enter the word:

My great (?) anti spam system