Installing Aptana on Ubuntu 8.04
Author: leveille
5
May
Quick install guide for Aptana on Ubuntu 8.04. Modeled after the Installing Aptana Studio on Debian guide found at the Aptana page for Installing Aptana on Linux. The issue with the guide provided by Aptana (at least for Ubuntu) is that Ubuntu comes with FF 3 Beta 5 (as of the time of this writing) by default. Aptana doesn’t play nicely with FF 3 Beta 5, and after what appears to be a successful install, spits back an “embedded browser not available” error. Note: you don’t have to worry about uninstalling FF 3!
- Install Java (sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts)
- Install Firefox 2 (sudo apt-get install firefox-2)
- Download and unzip aptana to /usr/local/aptana
- Save the following script as runAptana.sh to /usr/local/aptana
#!/bin/bash
export MOZILLA_FIVE_HOME=/usr/lib/firefox
/usr/local/aptana/AptanaStudio
- Make runAptana.sh executable (sudo chmod a+x runAptana.sh)
- Create a desktop launcher for Aptana and point it at runAptana.sh
- Right click on your desktop
- Click on Create Launcher
- Name: Aptana
- Command: browse for runAptana.sh
- Open firefox-2 Profile Manager (sudo firefox-2 -ProfileManager)
- Create ff Profile “aptana” dedicated for Aptana debugging.
- Start ff with the aptana Profile: (sudo firefox-2 -P aptana)
- Download from here http://update.aptana.com/update/firebug.xpi and install the firebug extension, modified for Aptana debugging. Close Aptana Profile of firefox.
- Start Aptana.
- Go to Run -> Debug…
- click on the Web Browser within the left pane
- Press the ‘New’ button.
- Within the right pane: Name the new configuration “Firefox”
- Fill within:
- Browser executable: /usr/bin/firefox-2
- Arguments: -P aptana -no-remote
Filed under: Aptana, linux
29 Responses for "Installing Aptana on Ubuntu 8.04"
Great post, I was searching for a while why Aptana was playing up with Ubuntu 8.04.
It’s the Firefox 3 Beta 5 issue.
Thanks for sharing.
No problem Matthew. I hope you had a much easier time with this than I initially had.
Great post !! Direct, simple, objective .
Congratulations!
Hey! THANK You very much for this post. It was really helpful for me. Congrats.
I find it interesting that the last two comments have ended with congrats. Have I won something?
Anyway, no problem Alan.
Worked like a charm, thank you very much!
Thanks!
Does anyone know if Aptana works okay with Firefox 3, as Ubuntu has updated ff from 3b5 to 3.0
I just took a look and it appears that Aptana now plays nicely with FF3.0 as the debugger. I could be wrong.
Thanks. That is what I have found, but i am new to Aptana and Ubuntu hardy herron, so just wanted to check.
Have FF3 and Hardy 64 and cant get sun-java6-plugin….
“sun-java6-jre is already the newest version.
Package sun-java6-plugin is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source”
……..have all repositories enabled….get this error on launch:
!STACK 1
java.lang.UnsatisfiedLinkError: /usr/local/aptana/configuration/org.eclipse.osgi/bundles/98/1/.cp/libswt-pi-gtk-3236.so: /usr/local/aptana/configuration/org.eclipse.osgi/bundles/98/1/.cp/libswt-pi-gtk-3236.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
Sorry I had to edit your comment Rob, but it was a bit long. It looks like you are running the 64 bit version of Hardy. I am running the 32 bit version. I couldn’t tell you exactly why you are having issues with the installation of the java plugin, however you might have better luck searching for solutions at the Ubuntu forums.
Best of luck.
Ah man. Thanks! This solved my issues with the “Browser Inside”!
For 64 bit, you need to download the 32 bit jvm and tell aptana to use that when it launches.
Add this to the script after the export line
/usr/local/aptana/AptanaStudio -vm /usr/lib/jvm/ia32-java-6-sun-1.6.0.06/jre/bin/java
Of course this depends on where those executables live…
-playalpha
Thanks for the tip!
Thank you for this guide.. Very helpful and works perfectly on my Hardy install.
Important:
1. Firefox 2 is REQUIRED by aptana.. So, if you have FF3, you need to do an apt-get install firefox2 (otherwise you will get tons of SWT error messages after launching aptana).
2. Remember to run:
sudo chown -R [user]:[user] runAptana.sh
after creating the runAptana.sh script (if runAptana is created as root, you may get ‘permission’ related errors when you attempt to run aptana under your login).
Thanks for the additional tips applehead.
thanks a lot.
I don’t understand WHY they don’t just release a DEB package …. they want to MAKE US SUFFER!!!
Quality! thank you for guide.
Ok, I got RadRails and Aptana running but when it starts it shows me a message saying that “We were unable to detect a ruby installation.” But I have Ruby installed. I can run irb and it works…
mike
Thank you so much, great tutorial!
R0b,
I too am running the 64 bit Hardy and experiencing the same issue as you are during lauch of APTAN. Has anyone identified a fix for this yet?
Have FF3 and Hardy 64 and cant get sun-java6-plugin….
“sun-java6-jre is already the newest version.
Package sun-java6-plugin is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source”
……..have all repositories enabled….get this error on launch:
!STACK 1
java.lang.UnsatisfiedLinkError: /usr/local/aptana/configuration/org.eclipse.osgi/bundles/98/1/.cp/libswt-pi-gtk-3236.so: /usr/local/aptana/configuration/org.eclipse.osgi/bundles/98/1/.cp/libswt-pi-gtk-3236.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
r0b,
I found a resolution to this issue… Seems as if you will have to result to installing a 32 bit version of Java… here is the link.. it worked for me just fine. Ubuntu has a great community.
http://www.aptana.com/docs/index.php/Installing_Aptana_on_Linux#Running_Aptana_Studio_on_64-bit_Linux
notanxious, thanks for sharing your resolution. It’s very much appreciated!
Hey,
thanks for the great post. However, after following all the steps I still get the same message on aptana startpage:
embedded browser not available.
I’ve tried removing all firefox packages and installing them again. A java -version on terminal gives me:
java version “1.6.0_06″
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
Any advise?
Thanks in advance!
Just to clarify, are you on a 32 or 64 bit machine?
Hi,
It worked when I changed the shell script where I had used iceape instead of firefox
Thanks!
Thanks alot man. great work. really helped.
Oh man… this post is worth nothing.
1. it didnt work with aptana.
2. you wrecked with these commands my nice ff 3!
When i want to start my ff 3 the “another ff process is already running.”
I uninstalled ff 2 again, deleted the created profile etc.
You ought help me.
Leave a reply