Install Adobe Flex Builder Linux(alpha) in Ubuntu

Yesterday, i found the Flex Builder for Linux on Adobe Labs. Since i am a Flex Developer i would like to install Adobe Flex Builder Linux(alpha) in my Ubuntu OS. I have noticed here that the Flex Builder Linux is a plugin-only version of the Flex Builder, the desktop version for Linux not yet released. So i need to install Flex Builder as plug-in on the Eclipse IDE.

This Flex Builder Linux is not installed properly in the other version of the Eclipse(lower or upper than 3.3.x). Specifically, Eclipse 3.3.x is only supports to install this Flex Builder. The following prerequisites must be installed before that.

  • Java Runtime Engine(JRE) latest
  • Eclipse 3.3.x

Install Java Runtime in Ubuntu

To install the latest JRE, go to Add/Remove… Applications, select ‘Sun Java 6 Runtime‘ and click Apply changes. it installs latest JRE.

add-remove-applications

Install Eclipse 3.3.x

Since the Flex Builder Linux supports Eclipse 3.3.x, we need to download from eclipse.org, Click here to download Eclipse 3.3.x. The Ubuntu synoptics will download latest Eclipse which is mostly not supported. After completing the download, do the following steps to install Eclipse.

Extract the tar.gz file and move to a folder where you want to install.

tar xzf eclipse-jee-europa-winter-linux-gtk.tar.gz
sudo mv eclipse /opt/eclipse
cd /opt
sudo chown -R root:root eclipse
sudo chmod -R +r eclipse
sudo chmod +x `sudo find eclipse -type d`


Create a executable file to launch Eclipse

sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudoedit /usr/bin/eclipse

#!/bin/sh
#export MOZILLA_FIVE_HOME=”/usr/lib/mozilla/”
export ECLIPSE_HOME=”/opt/eclipse”

$ECLIPSE_HOME/eclipse $*

Create Menu for Eclipse

sudoedit /usr/share/applications/eclipse.desktop

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true

Initialize the setup

/opt/eclipse/eclipse -clean

Thats all, eclipse installed, lets do the Flex Builder installation.

Download the Adobe Flex Builder Linux(alpha) here

Change the downloaded file as executable (chmod +x)

Execute the file using shell (sh flexbuilder_linux_install_a4_081408.bin). Now proceed with the installation wizard and we need to give the path of the Eclipse where its installed. In my case its /opt/eclipse and make sure the folder having write permission if you not installed from root user.

adobe_flex_builder_linux

Once the installation complete, you just go to Applications –> Programming –> Eclipse. Create a new workspace for Flex and get in to the Eclipse. Change the Flex development perspective and enjoy the coding with Flex on Linux (Ubuntu) :)

Be Sociable, Share!

64 Responses to “Install Adobe Flex Builder Linux(alpha) in Ubuntu”

  1. Fernando says:

    I am getting the following error. I googled but I found nothing. I saw other same kind of problems for some scripts in Ubuntu. Actually, it is a script. Any help, please! Ubuntu 8.04

    Preparing to install…
    Extracting the installation resources from the installer archive…
    The size of the extracted files to be installed are corrupted. Please
    try to download the installer again and make sure that you download
    using ‘binary’ mode.

  2. babu says:

    hi
    i am getting the following error while installing flex builder on ubuntu 8.10

    Stack Trace:
    java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
    at java.awt.Component.(Component.java:568)
    at com.zerog.ia.installer.LifeCycleManager.g(DashoA8113)
    at com.zerog.ia.installer.LifeCycleManager.h(DashoA8113)
    at com.zerog.ia.installer.LifeCycleManager.a(DashoA8113)
    at com.zerog.ia.installer.Main.main(DashoA8113)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at com.zerog.lax.LAX.launch(DashoA8113)
    at com.zerog.lax.LAX.main(DashoA8113)
    This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

  3. deepak rk says:

    I have installed flex in ubuntu successfully but it is not showing in eclipse .I didn’t get any error log while installation .
    please help me .

    • KBala says:

      Great!..just open the Flex Development Perspective and start your work. OR go to File –> New –> others and the select Flex Builder, and create flex project then it will ask you to change to Flex Perspective, click yes. And go ahead.

  4. vtam says:

    I followed your instructions step by step and install flex builder with a few non fatal errors. But when I open eclipse, flex builder is no where to be found. Can you help me with that ?

    • KBala says:

      Can i know whats the errors you got. Anyway, go to File –> New –> others and the select Flex Builder, and create flex project then it will ask you to change to Flex Perspective, click yes, and go ahead.

      • triveni says:

        I followed your instructions step by step and install flex builder .Installation is successful But when I open eclipse, flex builder is no where to be found. Can you help me with that ?

        • KBala says:

          Good if you send a screenshot, then i try to identify whats the issue

          • Triveni says:

            Hi,

            When I open Eclipse I see Flex builder no where. Checked the perspectives but to no avail. Kindly suggest me a solution for this.

            I am using MYEclipse7.1 on ubuntu8.04

            And one more

            1)Is there a standalone IDE of flex builder for UBUNTU.
            2)I have installed flex builder in ubuntu(as following above steps), but i am not able to see in eclipse.

            please help me

            Regards,
            Triveni

        • KBala says:

          Triveni, It will work only on Eclipse 3.3.x.

  5. DT says:

    Bala,
    Thx 4 coming up with detailed instructions.
    FYI: I am using Ubuntu 8.10
    Couple comments & questions:
    1. Comment: I was able to download JRE 6 using Synaptic Manager.

    2. Question Eclipse 3.3.x: When I clicked on the ‘here’ link that u have provided in your document, it downloaded a tar file which had a DIFFERENT name that the one u have mentioned in your doc, i.e. the name of the tar ball was eclipse-jee-europe-winter-linux-gtk.tar.gz (NOT xzf wtp-all-in-one-sdk-1.0-linux-gtk.tar.gz)

    Question: do u know if the tarball still contains the bits for 3.3.x version (or has been upgraded to 3.4)?

    3. I will let u know how the rest of the process goes.

    Regards,
    DT

    • KBala says:

      DT,

      Thanks for your comments. sorry it was misspelled, it should be eclipse-jee-europe-winter-linux-gtk.tar.gz. I have updated the post now.
      Right now Flex Builder Linux is built for 3.3.x not for 3.4. so i hope it will not support 3.4.

  6. DT says:

    More comments:
    Bala,
    When running /opt/eclipse/eclipse -clean, i got the following errors:
    zubin:/usr/share/applications$ /opt/eclipse/eclipse -clean
    /usr/lib/gio/modules/libgiogconf.so: wrong ELF class: ELFCLASS64
    Failed to load module: /usr/lib/gio/modules/libgiogconf.so
    /usr/lib/gio/modules/libgioremote-volume-monitor.so: wrong ELF class: ELFCLASS64
    Failed to load module: /usr/lib/gio/modules/libgioremote-volume-monitor.so
    /usr/lib/gio/modules/libgvfsdbus.so: wrong ELF class: ELFCLASS64
    Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so

    Any idea what is causing this & how to fix this?
    Danesh

    • KBala says:

      Hi,

      I have experienced my installation process with 32bit. but the above error u mentioned, its due to 64bit system. I don’t have 64bit system right now to do a workaround to fix this. Please study the help about clean command and make sure any special notation for 64bit. If you have done successfully, please let me know.

  7. DT says:

    Addendum to the previous comment:
    Bala, my Ubuntu box is a 64-bit Intel Dual Core box and seems to be running 64bit version of Ub 8.10, i.e.,
    % uname -a
    Linux zubin 2.6.27-11-generic #1 SMP Wed Apr 1 20:53:41 UTC 2009 x86_64 GNU/Linux

    Question: Could it be that eclipse bits are 32-bit version and my box expects the 64-bit version of libs? This raises two questions:
    1. Is there a 64-bit version of eclipse 3.3.x that I should use?
    2. Is there any work around this?

    Thx
    DT

    • KBala says:

      Hi,

      Yes, you should install 64bit version of Eclipse. But, the Flex Builder Linux installation is tested with 32bit by Adobe, not with 64bit still. But i hope it will work on 64bit as well.

  8. DT says:

    Bala,
    Thx 4 the feedback. I am going to follow up Adobe’s release notes for installing the stuff (jre, eclipse, firefoc, fb…) on 64-bit linux. It will be still 32-bit version running on 64-bit linux, but that is ok with me.
    Danesh

  9. venkateshkumar says:

    HI, I have installed the Eclipse, Flex, JRE as per info from this page, but I am not able to see the flex builder at File –> New –> others, What should I do next?

  10. James Ward says:

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

    Thanks!

    -James

    • KBala says:

      Hi James,

      I did already, anyway thanks.

      All visitors!, Please sign in and vote for full Flex Builder on Linux: http://bugs.adobe.com/jira/browse/FB-19053. Since Flex Builder Linux is still in alpha, Adobe will start the further development on this if more numbers of people wanted to using this Flex Builder Linux. So please vote and we can show strength to Adobe.

  11. Venkateshkumar says:

    I have installed the Flex on Ubuntu 9.04 as per the comments, I got them (ecllipse and flex)installed with error, still I am not able to find “File –> New –> others and the select Flex Builder”, any possible work around??

    Dying to start work with flex on Ubuntu

    • KBala says:

      Hi Venkateshkumar,

      yes i will give you the solution. before that please let me know following things.

      Whats your installed Eclipse version? Where you installed(Path)? whats the installed path of FlexBuilderLinux?

      Please let me know i will guide you.

  12. Heiko says:

    I installed the linux binary on Ubuntu 8.10 and Eclipse 3.3 without having problems. It is still not working with Eclipse 3.4. Before I tried out many workarounds, installing the FlexBuilder Pro version in Wine, calling startup.jar, starting in VMWare… It’s working now but I still miss the graphical builder. In my Eclipse Ganymed I used a small plugin for code formatting and imported the mxml schema file into Eclipse to have code-completion. I kicked the mxmlc as an “External builder”. Everything works fine, I don’t see an advantage with running the linux alpha version on now….It’s working but I still miss the designer! (BTW: There is a small plugin from Amateras with a visual designer) … cheers heiko

  13. DT says:

    I finally managed to install & bring up FB (32-bit FF, eclipse 3.3, …) on 64-bit Ub 8.10.

    The instructions that made it possible are @ http://ubuntuforums.org/showthread.php?t=947728.

    However when I try to run Adobe’s HelloWorld AIR app (under Flex Builder, I get the following error msgs:

    Process terminated without establishing connection to debugger.

    Command:

    /usr/lib32/Adobe_Flex_Builder_Linux/sdks/3.0.0/bin/adl_lin -runtime /usr/lib32/Adobe_Flex_Builder_Linux/sdks/3.0.0/runtimes/air/linux /home/danesh/tmp/AIRHelloWorld/bin-debug/AIRHelloWorld-app.xml /home/danesh/tmp/AIRHelloWorld/bin-debug

    Output from command:

    This application requires a version of the Adobe Integrated Runtime (AIR) which is no longer supported. Please contact the application author for an updated version.
    /usr/lib/gio/modules/libgiogconf.so: wrong ELF class: ELFCLASS64
    Failed to load module: /usr/lib/gio/modules/libgiogconf.so
    /usr/lib/gio/modules/libgioremote-volume-monitor.so: wrong ELF class: ELFCLASS64
    Failed to load module: /usr/lib/gio/modules/libgioremote-volume-monitor.so
    /usr/lib/gio/modules/libgvfsdbus.so: wrong ELF class: ELFCLASS64
    Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so

    Any idea what is going on?
    Thx
    DT

  14. DT says:

    Thx Bala. I followed Ash’s instructions and was able to get the problem fixed.

    The only problem (which seems to be benigh, since it seems everythingis working OK) that i encountered was when I brought up eclipse, I got the following error msgs. Any idea why

    /usr/lib/gio/modules/libgiogconf.so: wrong ELF class: ELFCLASS64
    Failed to load module: /usr/lib/gio/modules/libgiogconf.so
    /usr/lib/gio/modules/libgioremote-volume-monitor.so: wrong ELF class: ELFCLASS64
    Failed to load module: /usr/lib/gio/modules/libgioremote-volume-monitor.so
    /usr/lib/gio/modules/libgvfsdbus.so: wrong ELF class: ELFCLASS64
    Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so

    ThanksDanesh

  15. Eugene says:

    Hi Bala, during the step for Initialize the setup, after typing in the command:

    /opt/eclipse/eclipse -clean

    I received an output which goes:
    bash: /opt/eclipse/eclipse: is a directory

    I have followed all your steps prior the initialization step.
    Any idea how i can fix it?

    Best Regards,
    Eugene

  16. KBala says:

    Hi Eugene,

    Make sure the eclipse executable file should be /opt/eclipse/eclipse. I think, in your case it might be /opt/eclipse/eclipse/eclipse. Please check and let me know if you have still some issue.

  17. Venkateshkumar says:

    Hi,

    Sorry been on leave,

    Initially I had Eclipse 3.2 installed on my machine, later download Eclipse 3.3 and installed it as per the instruction from above article.

    Flex builder too installed according to the instruction as per above article.

    I am using Ubuntu 9.04

  18. KBala says:

    So, it works now. right?

  19. Venkateshkumar says:

    Sadly, it is not working. And worst I am not able to fix the problem. Can you let me know what should I do next.

  20. Punit says:

    I was also not able to see the flex builder options in Projects.
    It seems that Links method of plugin wasnt working for me.
    The installer puts a link file as
    /links/com.adobe.flexbuilder.feature.core.linux.link pointing to plugin directory at /Adobe_Flex_Builder_Linux/eclipse.

    What i basically did was copy the files and folders under /Adobe_Flex_Builder_Linux/eclipse/plugins
    /Adobe_Flex_Builder_Linux/eclipse/features
    /Adobe_Flex_Builder_Linux/eclipse/.eclipseextension
    to their corresponding paths in /opt/eclipse (which was my eclipse root)

    This did it for me, and i got it working.

  21. Daniel says:

    This acctually worked out just fine (ubuntu 8.10), and today i wrote my first actionscript 3.0 file and flex hello-world app! Im excited, and are looking forward to learn a full set of skills with my newly borrowed as3 bible 🙂

    Thanks alot for making my day easier, and happy! You are the hero of my day!

  22. Niel Bryant says:

    Hi Bala,

    Followed your instructs. Installed, but failed to open a Flex Project. I get the options for going into Flex Dev Perspective or Flex Debug Perspective, but i get errors when going into the Perspective. In the perspective tree panel, i get the following error-stack…

    java.lang.NoClassDefFoundError: com/adobe/flexbuilder/editors/derived/ui/navigator/FlexAbstractResourceNavigator
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:637)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:161)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:501)
    etc….

    When trying to create a Flex Project i keep getting the following error:

    Plug-in com.adobe.flexbuilder.apollo.ui was unable to load class com.adobe.flexbuilder.apollo.ui.wizards.flex.FlexApolloProjectWizard.
    com/adobe/flexbuilder/editors/common/ui/wizards/INewFlexFileWizard

    So it seems mostly set up but not working.

    Any insight would be greatly appreciated. Would surely love to use FB on Ubuntu.

    Thanks much,

    Niel

  23. gifran says:

    Hi Bala.
    Installing the flex builder plugin I got the following error:

    No Java virtual machine could be found from your PATH
    environment variable. You must install a VM prior to
    running this program.

    …which is not true: I have the virtual machine installed, and it’s on the PATH.

    can you help?

    thanks
    gigi

  24. KBala says:

    Hi Niel Bryant,

    It seems Flex Builder Plug-in not installed properly… make sure you have completely downloaded the plug-in package. Just re-inatll again and try.

    good luck!

  25. KBala says:

    Hi Gifran,

    Its really strange, since without JRE you could not install Eclipse as well. So my suggestion is, install the JRE as i mentioned though its installed already or try re-install the whole thing and follow the steps as it is…

  26. Jaison says:

    bala , im a student .. i need to learn something from you. can you help me

  27. Satheesh Mayandi says:

    Hello Bala,

    I have installed Eclipse Europa SDK Version: 3.3.2 and Flex Builder 3.0.1, then Java JRE 1.5 also installed.

    But I open eclipse that is asking for your trial version of Flex Linux has expired activate Linux Flex to continue enter the serial number.

    I have to run PHP and J2EE code for my project. Currently I am using Ubuntu 9.04(jaunty) Kernel Linux 2.6.28.16 GNome 2.26.1

    Please help for fix this issue.

    thanks

  28. KBala says:

    Hi Satheesh,

    Here you should enter the valid serial number to continue. Get the serial number by googling or purchase the Linux Flex.

    For PHP, you have to install PDT plugin in your eclipse.

  29. jmiguel77 says:

    hi, i have a problem with the serial number

    i enter the number, but the message that Flex Builder has expired continues and no code is displayed in the mxml editor

    please help

  30. Paige says:

    I’m having the same problem as Jmiguel; uninstalling and reinstalling doesn’t help at all. This is rather unfortunate because I’m doing my undergrad thesis project in Flex… and I’m graduating at the end of this term 🙁

  31. Paige says:

    Aha! Installing alpha 5 (came out on 11/24) solved my problem. Win!

  32. Sparky says:

    I’m using Eclipse 3.5.1 and FB for Linux 3.0.257568 on Ubuntu 9.10 and I am still getting the editor assertion failure. I’ve tried the patches but then Flex disappears from Eclipse… Any ideas?

  33. revilorb says:

    Hi All,

    I have just gone thru the installation of Flex Builder Alpha 5.112409 as a plugin on Eclipse 3.5.1 / Ubuntu 9.1 and I have the same problem; “Could not open the editor: Assertion failed.” I have attempted to follow a few step by step installation guides that refer to Eclipse 3.3 but I have had trouble using them because Synaptics gives me 3.5 by default. Regardless, I would be very interested in finding out whether or not you or anyone else has found a solution to this issue or if we can knock heads to figure it out. I want to develop in the LAMP environment with FLEX. The MS world is workig but I want out! PLEASE help!

  34. […] I found a great tutorial for installing Flex Linux alpha. I copied and pasted the article here but you can view the original at http://kbala.com/2009/03/install-adobe-flex-builder-linux-alpha-in-ubuntu/. […]

  35. Fernando says:

    This article works perfect to me.

    But, in terminal I had to use root user for all steps and delete all eclipse folders preview installed ( Galileo).

    Thank you very much.

  36. […] found this nice little blog on how to do it http://kbala.com/2009/03/install-adobe-flex-builder-linux-alpha-in-ubuntu/ but it turns out that flex needs a 32 bit version of […]

  37. Pranay says:

    Hi Bala,
    Thanks for this step by step tutorial.
    Ok, here is the prblm..
    The flex builder is not showing the design view.
    It is only showing the source view in editor.
    i checked under Window->Show View..it only shows following options
    Flex Navigator ,Outline, Problems,Other.

    It is difficult to work without design view.
    How to fix this ?? Any ideas?

  38. KBala says:

    Hi Pranay,

    In the source view editor, see at bottom left corner, another tab is available for design view.

    Thanks

    KBala

  39. Pranay says:

    Thank you for the reply Bala.
    But I am still unable to find the design view.
    I’ve uploaded screenshots..plz take a look at them.

    http://picasaweb.google.co.in/105061270960651465098/FlexDesignViewMissing?feat=directlink

    • KBala says:

      Hey,

      I looked the screenshots, it seems that you are in java perspective. please change to Flex Perspective, then the design view appears

      Thanks

      KBala

  40. Chiranjeevi says:

    Hi Bala,

    Thanks for the eclipse installation tutorial. I am a newbie to Linux and have been using Fedora 12 OS and followed exactly as you discussed.After initialize the setup /opt/eclipse/eclipse -clean, I get the following error on eclipse startup. Can kindly let me know what this error about or if I am doing wrong while setup. I have Sun JDK 6 already installed.

    JVM terminated. Exit code=-1
    -Dosgi.requiredJavaVersion=1.5
    -XX:MaxPermSize=256m
    -Xms40m
    -Xmx512m
    -Djava.class.path=/opt/eclipse//plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    -os linux
    -ws gtk
    -arch x86
    -showsplash /opt/eclipse//plugins/org.eclipse.platform_3.3.202.v201002111343/splash.bmp
    -launcher /opt/eclipse/eclipse
    -name Eclipse
    –launcher.library /opt/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520/eclipse_1206.so
    -startup /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    -product org.eclipse.epp.package.jee.product
    -clean
    -vm /usr/java/jdk1.6.0_18/bin/../jre/lib/i386/client/libjvm.so
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -XX:MaxPermSize=256m
    -Xms40m
    -Xmx512m
    -Djava.class.path=/opt/eclipse//plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar

    Thanks in advance
    Chiranjeevi

  41. Chiranjeevi says:

    This also gives the below error in the terminal….

    /usr/java/jdk1.6.0_18/bin/../jre/lib/i386/client/libjvm.so: cannot enable executable stack as shared object requires: Permission denied

  42. Chiranjeevi says:

    Hi Bala,

    Finally I did solve the Eclipse problem by changing the eclipse.ini file. It works fine now.
    But now the problem arises with Flex builder. Just followed your installation steps for the set up. When I open Eclipse I see Flex builder no where. Checked the perspectives but to no avail. Kindly suggest me a solution for this.

    My flex builder has been installed in /root/Adobe flex builder and eclipse ide in /opt/eclipse.

    I am using Eclipse JEE Galileo.

    Regards
    Chiranjeevi

  43. Sid says:

    Hi,

    I want to setup flex on ubuntu 10.10. The adobe site says that flex builder for linux is no longer available for download. is there an alternate site for flex download.

    Thanks & Regards
    Sid

  44. happybrowndog says:

    You can still download it here:

    http://download.macromedia.com/pub/labs/flex/flexbuilder_linux/flexbuilder_linux_install_a5_112409.bin

    One problem I have not resolved is that fdb randomly disconnects from the browser, saying “player session terminated”. It happens with all browsers (FF, Midori, Opera, Ephiphany, etc.) that I’ve tried, and the time it terminates seems to be pretty random – that is, when the flex application is left idle for any amount of time.

    Has anyone resolved this?

  45. Chris Wang says:

    Nice post!!! Thanks!
    When I exit Eclipse, the pop-up window opens and asks me to input the serial number to activate the Flex Builder Linux. Could you please share me the serial number? My email is wguocan@hotmail.com

Leave a Reply


Copyright © 2008-2010 K BalaSubramanian | Credits