Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38

Thread: How to install Adobe Flex Builder on Ubuntu 8.04 [64-bit]

  1. #1
    Join Date
    May 2008
    Beans
    99

    How to install Adobe Flex Builder on Ubuntu 9.10 [64-bit]

    UPDATED: 20/02/10
    This guide has been updated for Ubuntu 9.10 (karmic). Please note that this guide is only for 64-bit users. If you are running a 32-bit operating system then you won't need quite a few of the steps listed here.

    Adobe's website lists some basic instructions for installing Flex Builder on a 64-bit system but it's a long way from being a complete guide. If you're new to Linux or don't have the patience for a complex installation my advice is to walk away now. This is not a simple installation and will take quite a bit of time to complete.

    One of the main difficulties involved in the installation is that it requires the installation of a few 32-bit applications. If your system is set up like mine you probably already have a 64-bit version of Firefox, Eclipse and Sun's JRE installed. You also most likely have other applications that depend on those 64-bit versions so removing the 64-bit versions and replacing them with 32-bit versions isn't an option. The alternative is to install both 32 and 64-bit versions of those applications on the same system, but getting them to coexist creates an entirely new set of problems.

    The following guide will walk you through installing the 32-bit versions of Firefox, Eclipse and Sun's JRE in a way that will also allow you to keep your existing 64-bit versions. Before proceeding you'll need to download the following files. Make sure to download them to your desktop as the steps below assume that these files can be found in your desktop folder.





    Since this guide is geared towards installing Flex Builder for Air application development I'd highly recommend installing the Air runtime before proceeding. Visit this link for a complete guide on how to install Air on 64-bit systems.


    1. Step one, put on a big pot of coffee because this is going to take a while.
    2. Install the following packages if they're not already installed.
      Code:
      sudo apt-get install ia32-libs ia32-sun-java6-bin
    3. We need to temporarily change the default JRE to the 32-bit version. First let's find out where your java symlink points to.
      Code:
      readlink -e /usr/bin/java
      The command above will display something like the following:
      Code:
      /usr/lib/jvm/java-6-sun/jre/bin/java
      Write down the path that's displayed in your terminal. If it's already set to the ia32-java-6-sun path then you can just skip the next step.

    4. Now set your 32-bit version of java as the default jre.
      Code:
      sudo update-alternatives --set java /usr/lib/jvm/ia32-java-6-sun/jre/bin/java
    5. Now we need to extract the 32-bit versions of Eclipse and Firefox. For this guide we'll use ~/Flex as our default installation directory.
      Code:
      mkdir ~/Flex
      tar -xf ~/Desktop/firefox*.bz2 -C ~/Flex
      tar -xf ~/Desktop/eclipse*.gz -C ~/Flex
    6. Let's make sure that we have the 32-bit versions of firefox and eclipse installed. This may sound like a pointless step but accidentally clicking on the wrong link can lead to a ton of wasted time and frustration.
      Code:
      file ~/Flex/firefox/firefox-bin
      file ~/Flex/eclipse/eclipse
    7. If they're both listed as "ELF 32-bit LSB executable" then continue to the next step. Otherwise you probably downloaded the wrong version which means it's time to start over...and possibly another pot of coffee.
    8. Run firefox and make sure it opens successfully.
      Code:
      ~/Flex/firefox/firefox
    9. Run eclipse and make sure it opens successfully.
      Code:
      ~/Flex/eclipse/eclipse
    10. The first time you run eclipse you will be asked to select a workspace path. Enter the following path when prompted (replacing YourUserName with your own).
      Code:
      /home/YourUserName/Flex/workspace
    11. Assuming no errors are displayed in the terminal you should now be able to install Flex Builder so make the bin file executable.
      Code:
      chmod +x ~/Desktop/flexbuilder*.bin
    12. And now start the installation. Make sure that firefox, eclipse and all java apps are closed before proceeding.
      Code:
      ~/Desktop/flexbuilder*.bin
    13. When you are prompted to select the Flex Builder installation directory enter the following (replacing YourUserName with your own).
      Code:
      /home/YourUserName/Flex/Flex_Builder
    14. When you are prompted to select the 32-bit eclipse directory enter the following (replacing YourUserName with your own).
      Code:
      /home/YourUserName/Flex/eclipse
    15. Follow the on-screen instructions to complete the installation. The JSEclipse plugin is optional but I chose to install it anyway.
    16. Now we need to copy the DEBUG flash plugin to the 32-bit version of firefox. This is different from the standard flash plugin.
      Code:
      cp ~/Flex/Flex_Builder/Player/linux/install_flash_player_9_linux/libflashplayer.so ~/Flex/firefox/plugins
    17. Edit the eclipse.ini file so that it always uses the 32-bit version of java.
      Code:
      gedit ~/Flex/eclipse/eclipse.ini
    18. Add the following commands to the ini file. Make sure to enter them on the first line. The instructions on Adobe's website will tell you to place it at the end of the file. IGNORE THOSE INSTRUCTIONS. If you place it at the end of the file it will have no effect. You must also enter the commands on two separate lines. If you enter it as one line it will have no effect either.
      Code:
      -vm
      /usr/lib/jvm/ia32-java-6-sun/jre/bin/java
      The resulting file would look something like this:
      Code:
      -vm
      /usr/lib/jvm/ia32-java-6-sun/jre/bin/java
      -showsplash
      org.eclipse.platform
      -vmargs
      -Dosgi.requiredJavaVersion=1.5
      -Xms40m
      -Xmx256m
    19. Click save and close gedit.
    20. Change back to your default jre using the path you wrote down earlier. You should probably update javaws as well just to be safe.
      Code:
      sudo update-alternatives --set java /usr/lib/jvm/java-6-sun/jre/bin/java
      sudo update-alternatives --set javaws /usr/lib/jvm/java-6-sun/jre/bin/javaws
    21. Now we're going to create an application launcher for Flex Builder on your development menu.
      Code:
      sudo gedit /usr/share/applications/flexbuilder.desktop
    22. Copy ALL of the following and paste it into gedit (replace YourUserName with your own).
      Code:
      [Desktop Entry]
      Name=Adobe Flex Builder
      Comment=Flex Builder plugin for Eclipse IDE
      Exec=/home/YourUserName/Flex/eclipse/eclipse
      Icon=/home/YourUserName/Flex/eclipse/plugins/org.eclipse.platform_3.3.3.r33x_r20080129/eclipse48.png
      Terminal=false
      Type=Application
      Categories=Development;
      StartupNotify=true
    23. Click save and close gedit.
    24. I would highly recommend restarting your pc at this point just to be safe.
    25. Now if everything went well you should be able to open Flex Builder from your Applications menu. Click on your Applications menu, select Development, and click Adobe Flex Builder.
    26. If it opens then you have one more step. We need to set the default browser to the 32-bit version of Firefox that you installed. Click on Window then click Preferences. Expand the General menu. Click on Web Browser. Check the box labeled 'Use external Web browser'. Click New. Enter the following information.
      Code:
      Name: Firefox
      Location: /home/YourUserName/Flex/firefox/firefox
      Parameters: %URL%
    27. Click OK. Check the box next to Firefox and click OK.



    Update Flex and Air sdk
    The following steps will walk you through the process of installing the latest versions of the Flex and Air sdk and how to enable them in Eclipse. Make sure to download both files to your Desktop folder.
    1. Download the latest Flex sdk from the nightly section.
    2. Download the latest AIR sdk.
    3. Extract the flex sdk.
      Code:
      mkdir ~/Flex/latest_flex_sdk
      unzip -o -q ~/Desktop/flex_sdk*.zip -d ~/Flex/latest_flex_sdk
    4. Extract the air sdk.
      Code:
      tar --overwrite -xf ~/Desktop/AdobeAIRSDK*.tbz2 -C ~/Flex/latest_flex_sdk
    5. Try to remove the adl_lin and adt_lin files if they exist. It's possible that they may not be present in that folder so don't worry if the commands below display any errors.
      Code:
      rm ~/Flex/latest_flex_sdk/bin/adl_lin
      rm ~/Flex/latest_flex_sdk/bin/adt_lin
    6. Create the new adl_lin and adt_lin files.
      Code:
      rename s/adl/adl_lin/ ~/Flex/latest_flex_sdk/bin/adl
      rename s/adt/adt_lin/ ~/Flex/latest_flex_sdk/bin/adt
    7. Create a symlink for the linux directory.
      Code:
      ln -s ~/Flex/latest_flex_sdk/runtimes/air/linux ~/Flex/latest_flex_sdk/runtimes/air/Linux
    8. Open Eclipse
    9. Click Window > Preferences
    10. Expand the Flex folder
    11. Click Installed Flex SDKs
    12. Click Add
    13. Enter /home/YourUserName/Flex/latest_flex_sdk as the location
    14. Enter Nightly as the name (if you don't plan on updating very often then just keep the auto-generated name)
    15. Click OK
    16. Check the box next to Nightly to use this version by default, then click Apply.



    HELLO WORLD Air Application
    1. To create a new flex project click on File > New > Project...
    2. Click Flex Builder > Flex Project > Next
    3. Type a project name and then select Desktop Application.
    4. Click Finish.
    5. Click Yes if you are prompted to "Switch to Flex Development Perspective?"
    6. In the "Flex Navigator" pane, expand the src folder, right click on both files (.mxml and .xml) and select "Open with > Text Editor".
    7. Paste the following into the .mxml file replacing all of the existing content.
      Code:
      <?xml version="1.0" encoding="utf-8"?>
      <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" title="Hello World">
          <mx:Style>
              WindowedApplication
              {
                  background-color:"0x999999";
                  background-alpha:"0.5";
              }
          </mx:Style>
          <mx:Label text="Hello World" horizontalCenter="0" verticalCenter="0"/>
      </mx:WindowedApplication>
    8. In the .xml file select the code beginning with <title> and ending with </transparent>. Paste the following over the selected code.
      Code:
      		<title>Hello World</title>
      		<systemChrome>none</systemChrome>
      		<transparent>true</transparent>
    9. Click save then click debug (or press F11). A new window should appear with Hello World in the title bar and centered in the body of the window.



    Notes
    If you discover that your mouse has a problem clicking on some of the Next and Finish buttons in Eclipse then simply click on the button to select it and then press enter. Not sure if I'm the only one experiencing this issue but if you do encounter this problem it's fairly easy to work around it.
    Last edited by linuxed; February 24th, 2010 at 10:39 AM. Reason: updated guide for Ubuntu 9.10 (karmic)

  2. #2
    Join Date
    Apr 2008
    Location
    London, UK
    Beans
    55
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to install Adobe Flex Builder on Ubuntu 8.04 [64-bit]

    Thanks for this. I was planning on attempting this now, but it's 12:50 am atm and I think I'll need some sleep first!

  3. #3
    Join Date
    Oct 2008
    Beans
    5

    Re: How to install Adobe Flex Builder on Ubuntu 8.04 [64-bit]

    Very good HowTo, thank you! But...

    -> 33. If it opens ...

    It doesnt Everything was good till the p.33.

    #
    # An unexpected error has been detected by Java Runtime Environment:
    #
    # SIGSEGV (0xb) at pc=0xf3c9fc69, pid=6684, tid=4157987728
    #
    # Java VM: Java HotSpot(TM) Client VM (10.0-b23 mixed mode, sharing linux-x86)
    # Problematic frame:
    # C [libxul.so+0x948c69]
    #
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #

  4. #4
    Join Date
    May 2008
    Beans
    99

    Re: How to install Adobe Flex Builder on Ubuntu 8.04 [64-bit]

    The 32-bit version of eclipse may not be using the correct version of java. Type the following:
    Code:
    /usr/lib/jvm/ia32-java-6-sun-1.6.0.07/jre/bin/java -version
    It should output the following:
    Code:
    java version "1.6.0_07"
    Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
    Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
    If you can confirm that your 32-bit version of java is the same as above then double check the eclipse.ini file.
    Code:
    gedit /usr/lib32/eclipse/eclipse.ini
    It needs to look exactly like the following.
    Code:
    -vm
    /usr/lib/jvm/ia32-java-6-sun-1.6.0.07/jre/bin/java
    -startup
    plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.101.R34x_v20080805
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    -vmargs
    -Xms40m
    -Xmx256m
    Make sure that the -vm is the first line in the file and that the path to your 32-bit java appears on the second line. If you still can't launch Flex Builder from your Development menu try opening the 32-bit eclipse as root. The problem may be related to a permissions issue.
    Code:
    sudo /usr/lib32/eclipse/eclipse

  5. #5
    Join Date
    Oct 2008
    Beans
    5

    Re: How to install Adobe Flex Builder on Ubuntu 8.04 [64-bit]

    thanks a lot for your answer!

    I checked version and eclipse.ini - everething the same as you wrote.

    Code:
    java version "1.6.0_07"
    Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
    Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
    -------------
    Code:
    -vm
    /usr/lib/jvm/ia32-java-6-sun-1.6.0.07/jre/bin/java
    -startup
    plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.101.R34x_v20080805
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    -vmargs
    -Xms40m
    -Xmx256m
    Trying to start as root returns following

    Code:
    xxx@xxx:~$ sudo /usr/lib32/eclipse/eclipse
    [sudo] password for xxx:
    #
    # An unexpected error has been detected by Java Runtime Environment:
    #
    #  SIGSEGV (0xb) at pc=0xf3c16c69, pid=6027, tid=4158475152
    #
    # Java VM: Java HotSpot(TM) Client VM (10.0-b23 mixed mode, sharing linux-x86)
    # Problematic frame:
    # C  [libxul.so+0x948c69]
    #
    # An error report file with more information is saved as:
    # /home/vit/hs_err_pid6027.log
    #
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #
    Last edited by Karlabuzer; October 27th, 2008 at 08:29 AM.

  6. #6
    Join Date
    May 2008
    Beans
    99

    Re: How to install Adobe Flex Builder on Ubuntu 8.04 [64-bit]

    It looks like there is a problem with one of the libraries you extracted to your lib32 folder. Enter the following commands:
    Code:
    sudo -s
    rm /usr/lib32/libjemalloc.so
    rm /usr/lib32/libmozjs.so
    rm /usr/lib32/libsqlite3.so
    rm /usr/lib32/libsqlite3.so.0
    rm /usr/lib32/libxpcom.so
    rm /usr/lib32/libxul.so
    rm /usr/lib32/libnssckbi.so
    rm /usr/lib32/libpyxpcom.so
    file-roller ./xulrunner-1.9_1.9.0.3+build1+nobinonly-0ubuntu0.8.04.1_i386.deb
    Then try re-extracting the following files from the xulrunner package into your /usr/lib32 folder. Make sure you are using the 1.9 version of xulrunner. You might try extracting the libnssckbi and libpyxpcom files from the xulrunner package as well.
    Code:
    /usr/lib/xulrunner-1.9b5/libjemalloc.so
    /usr/lib/xulrunner-1.9b5/libmozjs.so
    /usr/lib/xulrunner-1.9b5/libnssckbi.so
    /usr/lib/xulrunner-1.9b5/libpyxpcom.so
    /usr/lib/xulrunner-1.9b5/libsqlite3.so
    /usr/lib/xulrunner-1.9b5/libsqlite3.so.0
    /usr/lib/xulrunner-1.9b5/libxpcom.so
    /usr/lib/xulrunner-1.9b5/libxul.so

  7. #7
    Join Date
    Oct 2008
    Beans
    5

    Re: How to install Adobe Flex Builder on Ubuntu 8.04 [64-bit]

    There wasnt libpyxpcom.so ...

    I re-extracted all but nothing changed

    I tried to start after removing files and eclipse was started, but when I extrated files back to /usr/lib32 it cant start again with the same error.

    Code:
    #
    # An unexpected error has been detected by Java Runtime Environment:
    #
    #  SIGSEGV (0xb) at pc=0xf407bc69, pid=9841, tid=4158708624
    #
    # Java VM: Java HotSpot(TM) Client VM (10.0-b23 mixed mode, sharing linux-x86)
    # Problematic frame:
    # C  [libxul.so+0x948c69]
    #
    # An error report file with more information is saved as:
    # /home/vit/all/hs_err_pid9841.log
    #
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #
    Btw i have a little another url in xulrunner package

    Code:
    /usr/lib/xulrunner-1.9.0.3/libjemalloc.so
    /usr/lib/xulrunner-1.9.0.3/libmozjs.so
    /usr/lib/xulrunner-1.9.0.3/libnssckbi.so
    /usr/lib/xulrunner-1.9.0.3/libpyxpcom.so
    /usr/lib/xulrunner-1.9.0.3/libsqlite3.so
    /usr/lib/xulrunner-1.9.0.3/libsqlite3.so.0
    /usr/lib/xulrunner-1.9.0.3/libxpcom.so
    /usr/lib/xulrunner-1.9.0.3/libxul.so

  8. #8
    Join Date
    May 2008
    Beans
    99

    Re: How to install Adobe Flex Builder on Ubuntu 8.04 [64-bit]

    Sorry, I posted the wrong xulrunner path. The one you posted (/usr/lib/xulrunner-1.9.0.3/) is correct. The files from the xulrunner package are used by the 32-bit version of firefox. You may want to try removing the xulrunner related files from your lib32 folder and then check whether firefox still has access to all of it's required libraries.
    Code:
    ldd /usr/lib32/firefox/firefox-bin
    More than likely it's going to say not found for a few libraries. Either way you can still run eclipse without the use of a 32-bit version of firefox. I'm not too sure why those files would be causing that error to occur on your system, but the only other suggestion I have is to run eclipse without the xulrunner library files in your lib32 folder.
    Last edited by linuxed; October 27th, 2008 at 12:16 PM.

  9. #9
    Join Date
    Oct 2008
    Beans
    5

    Re: How to install Adobe Flex Builder on Ubuntu 8.04 [64-bit]

    Thanks a lot! It works!

    I've copied only 4 files from xulrunner package

    Code:
            libjemalloc.so
            libxul.so
            libmozjs.so
            libxpcom.so
    About MXML editor:

    Window -> Preferences -> General -> Editors -> File Associations -> *.mxml

    Add your preferred editor and make it Default. It's enough for me

    Thank you again

  10. #10
    Join Date
    Aug 2007
    Beans
    130

    Re: How to install Adobe Flex Builder on Ubuntu 8.04 [64-bit]

    Perfect! Thanks!
    Last edited by peddy; November 3rd, 2008 at 06:42 AM.
    1101001

Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •