Wednesday, October 3, 2007

Installing Flex Builder Linux Alpha

,,,

         If you have downloaded Flex Builder linux alpha from the Adobe labs.. Here is how you can start with for the installation... Remember to read the release notes which also has some references to installation... Flex Builder linux alpha supports only Plugin installation into Eclipse 3.3 (Europa) release and is not available via a Standalone version installer. Please do have Eclipse 3.3 downloaded...
So what do you need to have...

a) One of the supported Linux Flavor (RHEL WS 4, SLES 10, Ubuntu).. If you want to try out a new distro then its not guaranteed that it will work pretty well 100% but yeah... it might work !! (may god help you...)

b) Have Sun JRE 1.5 Installed on your machine and get going as below... (It doesnt work with 1.4.x... it can work with 1.6 but not supported as of now... pretty early drop so is it...!!)

Installation steps for Flex Builder Linux Alpha in detail:

a) Download 32 Bit version of Eclipse 3.3 (downloaded from this location).
b) After you have un-tarred eclipse into some other location… say /home/arun/FBLinux/… You now have eclipse in /home/arun/FBLinux/eclipse/eclipse.exe
c) Without installing Flex builder Linux, ensure you can launch eclipse from your terminal using "./eclipse" (from that directory)..
d) Verify when asked for “workspace” choose new custom location for workspace (say /home/arun/FBLinux/eclipse/<NewWorkspaceDirectory>/)
e) Verify eclipse launches fine without any problem and you see the “Welcome page” (of eclipse)
f) Open your terminal
g) Type “java –version” and check what is the version of JRE you are running. Lets try to install JRE 1.5 (if you have a latest than this or earlier than this)
h) Please try installing JRE 1.5 from this location. Please find “Java Runtime Environment (JRE) 5.0 Update 12” click on the Download button related to this.. Click on “Accept license”… Download the file “Linux Self-extracting file” (jre-1_5_0_12-linux-i586.bin)… Use “sh jre-1.5xx.bin”) to start installing this new JRE to a folder (say on your desktop… example: /home/arun/Desktop/jre-1.5.0.12/ directory).. It should be 32 bit version if you are not downloading from what is told here..
i) Use the command “export PATH=/home/arun/Desktop/jre-1.5.0.12/bin:$PATH” (which sets the jre bin path priority to any other path on your machine).
j) Echo $PATH, verify you see “/home/arun/Desktop/jre-1.5.0.12/bin” in the beginning of any other path.
k) Type “java –version” and verify it shows 1.5 version from Sun Microsystems.
l) Now navigate to /home/arun/FBLinux/eclipse/ directory
m) Use ./eclipse and launch eclipse now. Verify it launches eclipse fine. Open your Window->Preferences->Java->Installed JRE and verify it uses JRE 1.5 as you installed above. If its not present, please add this in the list and make it default.
n) I assume you have downloaded flexbuilder_linux_install_a1_100207.bin (downloaded installer file with this sort of name) into directory say /home/arun/downloads/ location
o) Staying/Being in the same terminal, navigate to /home/arun/downloads/ location and use ‘sh flexbuilder_linux_install_a1_100207.bin”
p) Installer should launch now with a splash screen showing "Flex Builder Linux" and shows you a UI for installation...
q) Accept the EULA
r) Choose the location where you would want to install (Adobe_Flex_Builder_Alpha) – Say create a directory as here - /home/arun/FBLinux/Adobe_Flex_Builder_Alpha/
s) Choose the eclipse installed location directory (say /home/arun/FBLinux/eclipse directory)
t) Choose to install Flash player plugin that is provided with the installer (keep the check box checked.. don’t uncheck it)... This is a debug version of flash player browser plugin that is required for debugging flex applications from with-in the IDE..
u) Proceed with installation and Click finish in the Install
v) Now in the same terminal.
w) Navigate to the directory (ex: /home/arun/FBLinux/Adobe_Flex_Builder_Alpha/ directory). You will see a script named “Adobe_Flex_builder.sh”..
x) Use ‘sh Adobe_Flex_builder.sh’ and verify it launches eclipse fine.

Later on keep using the "Adobe_Flex_builder.sh" to launch Flex builder again after exiting... Read the release notes on what it does !! Happy RIA Dev on linux..

Keep me posted if you find any issues.


27 comments:

Mark said...

I do have to say JDK1.6 etc from sun works fine here. (fine as in I haven't noticed a problem but you might) :)

Kaashif said...

Is there any plan of having the support of Flex Builder support extend to the UNIX systems.

I have Solaris and I really dont wish to install a different OS to make FB work on it. :-(

Arun Kumar Madas said...

Kaashif,

Can you try to install the .bin file on solaris? I am really not sure about a support for solaris OS... if the community demands for it, may be we can.... Can people vote here if they are really in need of a solaris version.. Meanwhile, if you can try FB Linux on Solaris, let me know your findings...

Gerome said...

I followed your install and it seams to be installed correctly, however, I don't have the botton to switch from code view to design view like this guy does in the adobe tutorial:

http://labs.adobe.com/technologies/flexbuilder2/tutorials/#

Is that normal or did I do something wrong ?

Arun Kumar Madas said...

That looks like a Flex Builder 2 tutorial on windows...

Flex Builder Linux is based on Flex Builder Version 3 on windows and does not yet support the "Design View" functionality. You can refer to the release notes of FB Linux to look at unsupported features in the public alpha.

flexug.de said...

I have a 64 Bit Linux Ubuntu System (just switched from Windows, after a full system-crash-down) everything works fine except for FlexBuilder!

I now, i have to run in a 32 Bit System! And I followed this HowTo(http://cedegawiki.sweetleafstudios.com/wiki/Ubuntu)

But it doesn't work! - Does anyone has experience with 64 Bit Systems and FlexBuilder?

greetings²,
John

Arun Kumar Madas said...

Hi,

You need to have 32bit eclipse, 32bit JRE, 32bit Firefox installed on your 64bit OS for the installation to work pretty fine. Natively, FlexBuilder is not supported on 64bit OS with 64bit Apps. You can look at the release notes posted to look on how it works. I am not sure but i just tried Ubuntu 64bit 7.10 and i could not actually run any 32bit application. is that the reason? http://ubuntuforums.org/showthread.php?t=636749 check this out !

John Boyne said...

You also have to set a "chroot" (change root, a clear 32 Bit System!)!

Theoretical it is easy but i don't figured out how to set it pretty well up! I just can't change with chroot! :(

Arun Kumar Madas said...

I dont think you will need to do any changes for chroot as far as i know.

All you have to do in your terminal before installing flex builder is download self-extracting version of 32bit Sun JRE, extract it -

export PATH=/home/username/Desktop/jre1.5.0_12/bin:$PATH

check your java -
$java -version (should not show 64bit version)

start the installer
$sh Adobe_Flex_Builder.bin

After the installation is done, copy your debug flash player (libflashplayer.so) to your /home/username/.mozilla/plugins

$export MOZ_PLUGIN_PATH=/home/username/.mozilla/plugins

$export PATH=/home/username/Adobe_Flex_Builder/Player/linux/:$PATH
/** set the standalone player path**/

launch eclipse...

$./eclipse -Xmx512m

Do you want anything more! Look at the release notes...

John Boyne said...

I tried it, but my 64 Bit System don't want to run a 32 Bit Application!

Ubuntu is not able to change it right away, or not?

Arun Kumar Madas said...

I am really not sure if ubuntu is not gonna change that.. but they should change it according to me...


64bit OS should be supposed to run 32bit Apps without any problem. But looks like thats not the case with the default installation of Ubuntu 64bit. May be there is a workaround! not sure.. But thats really bad and i am also added to your list to just push Ubuntu to just support the execution of 32bit apps on their 64bit OS.

John Boyne said...

Yeah! I have to agree with Arun! Ubuntu should be supposed to run 32bit Apps without any problem! - I am very confident that Ubuntu will do it in the near future!

;)

greetings²,
John

John B. said...

I love the new messages. They may as well have popped up a dialog saying "Don't contact Adobe Support; we don't want to deal with you."

Thanks Adobe!

(How did they mess up their java product so badly that this stuff matters?)

Arun Kumar Madas said...

John b.

What is your concern about the product? I hope you do understand the effort of making a product used by thousands of people... Efforts are incremental, they cant take a plunge in a minute or overnite.. :)

~ Arun

Dmitry said...

mitjok: excellent! I repeated every step you describe in this article and succeeded to install flex builder on fedora core 8.
java version "1.5.0_14",
eclipse europa
flex builder alfa (flexbuilder_linux_install_a2_121807.bin)
($ ls progs
Adobe_Flex_Builder_Linux eclipse flexbuilder_linux_install_a2_121807.bin jre1.5.0_14 jre-1_5_0_14-linux-i586.bin)

thank you for your effort!

Chris said...

I have java version "1.7.0" (IcedTea Runtime Environment), and the installer just hangs after the EULA. I let it sit there, consuming 100% CPU for 30 minutes before I decided to kill it.

Arun Kumar Madas said...

You must consider viewing my Reply to one of the Forum post - Difficulty installing Flex Builder Linux on FC8 -

Basically you should consider downloading a Self-extracting version of SUN JRE 1.5 or JRE 1.6, set its path, so you can now see SUN JRE 1.5 or 1.6 when you type "java -version" and start the installer now.. it should proceed beyond the EULA this time. Yeah, the hang with icedTea Java is known but that JRE is not supported by Flex Builder Linux..

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=657&threadid=1319453&enterthread=y

The Thread

Robert said...

I am still trying to get this running on 64 bit ubuntu.. i really don't want to install a 32 bit jre.. would that mean i overwrite the 64 bit one..

and DUMB question:
why no 64 bit flex? I mean.. how many computers are 32 bit now anyway..?

like... None. and there have been None for many years.. why so sentimental

Arun Kumar Madas said...

Ubuntu 64bit OS does not seem to have the capability to run 32bit apps. Assuming you copy the exe for the command '/bin/ls' from a 32bit machine on to 64bit Ubuntu, and when you try to execute this 'ls', it does not run. So 32bit apps are not executed on 64bit Ubuntu. May be kernal doesnt support it.

I am not sure if this is fixed now by ubuntu.org but i guess they have to do something about it for your 32bit apps to run fine.

Its definately not sentimental to make apps that run natively on your 64bit OS. As far as i see it, i would like to make the efforts incremental. First make a complete release product (completely fine) on 32bit OS, then start looking at making it a 64bit native app (but we really are not sure about the exact dates).

Arun Kumar Madas said...

BTW, having a 64bit JRE does not imply that when you download a new "SELF-EXTRACTING" version of SUN 32bit JRE will over-write your existing 64bit JRE. No it does not overwrite.

Chris said...

I guess thanks for posting a guide, but that's got to be the most intricate installation procedure ever. Leave it to Adobe to take something that should be a one-click operation through Eclipse's plugin manager, and mutate it into something that even the most advanced Linux users struggle with...

Bhavesh said...

Hi All,

After Installing the Adobe Flex Builder Linux Alpha it is asking for an Serial Key
so what to do for that?
So is there any crack for the same or other way.

Bhavesh said...
This post has been removed by the author.
DineshJagadeesan said...

Hi Arun,
Is there any tutorials for Adobe Flex with Spring Integration

Arun Kumar Madas said...

@Bhavesh

you need to install latest version of the flex builder linux available through labs.adobe.com

There are no hacks or serial numbers yet for an alpha/beta product.

Arun Kumar Madas said...

@Dinesh

You may consider looking into the Adobe Flex Dev center.

Anonymous said...

Arun,

Thanks for the steps for installation.

I have seen all the procedure for installation. But, I am not able to complete the installation of flex builder in fedora 8.


Here, i am listing what i did.


1. After opening the terminal, java --version. It shows ...

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)


Now, environment variables ... JAVA_HOME is set and it is added to PATH environment variable.(export /home/raj/jdk1.6.0_07/bin:$PATH)


As told by adobe issue, sed -i 's/XINERAMA/FAKEEXTN/g' jre/lib/i386/xawt/libmawt.so , I have done this also.


So, I guess JAVA is ok.


2. Now, downloaded eclipse europa 3.3.2 , run the eclipse, created the work space. Inside preference, i check java, it is java 1.6.


So, I guess eclipse is ok.


3. After this step, i run the command: sh flexbuilder_linux_install_a4_081408.bin

But, after accepting the license agreement, the installer get hangs showing some message

"Please wait. Adobe_Flex_builder is being configured for your system. This may take a moment ... "

But, it is not coming out of this screen. So, i am supposed to kill the installer.



In my system , SE Linux is disabled.


Please help me ... where i am doing mistake.


- raj