Linux Installation Issues

Discussion for Aptana Studio newbies about how to get Studio up and running.

Moderator: Aptana Staff

Postby blazar » Thu Oct 02, 2008 4:56 pm

Zichlone, what distribution are you using? Debian or Debian-based will cause that error and for now there is no workaround we know of.
blazar
 
Posts: 668
Joined: Wed Jul 02, 2008 9:54 pm

Postby Zichlone » Fri Oct 03, 2008 12:46 am

Good 'ol debian based linux

You would think the Mozilla developers would be all over this. I used to use aptana on windows it was awesome
Zichlone
 
Posts: 2
Joined: Thu Oct 02, 2008 6:56 am

Postby scribbly » Wed Oct 08, 2008 2:01 pm

Zichlone, Blazar, and anyone else having these issues...
While I might be new here, from my point of view, the 'Embedded browser not available' problem is relatively easily fixed, at least on Ubuntu 8.04(debian based, my current development platform) and OpenSUSE 11.0(trying tonight for a little more stability)distros, both using the same 'fix'.

Problems fixed, at least for me...
1. Embedded browser not available -> by pointing MOZILLA_FIVE_HOME at xulrunner
2. JVM terminated -> by using the CORRECT xulrunner version 1.8.1.13, or similar 1.8.x.x


Step by step
1. Download and uncompress the .zip file. I have placed the resulting 'aptana' folder under '/home/nigel'.
2. Create a new file called say 'aptana' and make it executable
3. Copy the following into that text file
Code: Select all
#!/bin/sh
MOZILLA_FIVE_HOME=/usr/lib/xulrunner-1.8.1.13
if [ $LD_LIBRARY_PATH ]; then
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME
fi
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
/home/nigel/aptana/AptanaStudio


4. Change the path in the last line ie nigel to your username if you are following my directions.

5. The 'trick' seems to be using the CORRECT xulrunner in the second line.
> UBUNTU installs by default(at least on mine) version 1.9.0.3 at '/usr/lib/xulrunner-1.9.0.3', which is not compatible, giving you the 'JVM terminated.' screen shots in older posts.
I had to install 'xulrunner' from Synaptic, which installs version 1.8.1.13 at '/usr/lib/xulrunner'.
Thus the Ubuntu line#2 should read
Code: Select all
MOZILLA_FIVE_HOME=/usr/lib/xulrunner


> OPENSUSE 11.0 installs by default(at least on mine) version 1.8.1.13 at '/usr/lib/xulrunner-1.8.1.13'.
Thus the OpenSUSE 11.0 line#2 should read
Code: Select all
MOZILLA_FIVE_HOME=/usr/lib/xulrunner-1.8.1.13


6. Install Java. I am using java-1_6_0, present by default in OpenSUSE 11.0 and had to install in Ubuntu 8.04.

AND, that should be it....
By running the 'aptana' bash script(double click > run in Nautilus) you should be able to see the Aptana start page(MENU > Help > Aptana Studio Start Page) and preview your HTML code.
If Apatana does not start, you have the path wrong in the last line.

Thanks to tworoadsconverged for doing the real hard work.
I hope this helps. I would suggest that for other distros, you only need find or install the correct xulrunner and point to it in the bash file.

Best Regards,
Scribbly
scribbly
 
Posts: 34
Joined: Tue Sep 30, 2008 12:57 am

Postby scribbly » Thu Oct 09, 2008 6:51 am

Hi All,
An update to my last post with Fedora 9 instructions.
I decided to have a look at Fedora 9(very 'austere' and some weird-ass, but possibly 'correct' behaviour) and also installed Aptana as an exercise.

Use the same steps as my last post except for 5.
5. The 'trick' seems to be using the CORRECT xulrunner in the second line.
> Fedora 9 installs by default(at least on mine) version 1.9.?.? at '/usr/lib/xulrunner-1.9', which is not compatible, giving you the 'JVM terminated.' screen shots in older posts.
While I could not find the older xulrunner through the Fedora 9 'Add/Remove Software' system, a bit of googling found the Mozilla FTP site and the older version here
http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.8.1.3/contrib/linux-i686/xulrunner-1.8.1.3.en-US.linux-i686-20080128.tar.gz
Clicking on this link downloads the archive to your user 'Download' folder in Fedora 9 ie '/home/nigel/Download' for me.
Unarchive using file roller to get a 'xulrunner' folder.
Open a terminal, and type the following commands, changing the path in the last line ie nigel to your username.
    su
    mkdir /usr/lib/xulrunner
    cp -r /home/nigel/Download/xulrunner/* /usr/lib/xulrunner

Thus the Fedora line#2 should read
Code: Select all
MOZILLA_FIVE_HOME=/usr/lib/xulrunner


AND, that should be it....
The only quirk I saw, was that after starting Apatana, the first home page load resulted in a blank screen. Loading the page again worked fine, as did the previews. This may have been a result of Virtualbox as my Fedora 9 does not seem entirely happy.

derekmjg, if you are still having issues, this will most likely fix them for you. The 'JVM terminated.' error looks for all the world like a JRE problem but is fixed by using the correct xulrunner package.

All other distros should be workable using the steps in the previous post and finding/downloading the xulrunner from the Mozilla FTP site.

BTW, I think Aptana is great. Well done! For what I need(HTML+CSS+PHP, mainly code prompting and cleanup/organisation) doing PHP+Joomla development, it actually works better than Dreamweaver.


Please excuse any 'long ways around' or incorrect terminology as I only moved to linux 4 weeks ago from Windows XP. After a year of false starts, the latest distros, hardware support and software tools, such as the latest Aptana, finally came together for me and I have dumped Windows XP, except for a couple of Virtualbox sessions for IE6, IE7 & Outlook 2003 testing and running Adobe products(Photoshop, Illustrator and Indesign) for which there are no linux alternatives that handle CMYK colour spaces for the print industry(except for Scribus, but it is too different to jump right into at the moment).
I am still learning and today, found the script file code can be improved as below, changing the last line using the '~ to place you in your home/user folder.
Code: Select all
#!/bin/sh
MOZILLA_FIVE_HOME=/usr/lib/xulrunner
if [ $LD_LIBRARY_PATH ]; then
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME
fi
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
~/aptana/AptanaStudio


Best Regards,
Scribbly
scribbly
 
Posts: 34
Joined: Tue Sep 30, 2008 12:57 am

Postby c1nsultorpc » Sun Oct 12, 2008 11:28 am

Thank you very much scribbly, your solution works perfectly :)
c1nsultorpc
 
Posts: 1
Joined: Sun Oct 12, 2008 11:27 am

Postby arpori » Mon Oct 13, 2008 3:52 am

thank scribbly, you are great
arpori
 
Posts: 2
Joined: Mon May 05, 2008 6:48 am

installation

Postby astr » Sat Oct 18, 2008 2:32 pm

Thank you scribbly, it worked perfectly!
astr
astr
 
Posts: 1
Joined: Sat Oct 18, 2008 2:06 pm
Location: Berlin

Postby scribbly » Tue Oct 21, 2008 2:58 pm

8)
No worries people....glad I could help.
Not great, just methodical and persistent...you need to be with linux.

The next great 'adventure' is Ubuntu 8.04/8.1 64bit, as I have a new notebook arriving this week with 4gb and need to reclaim the 'missing' top 700mb for VMWare usage....paging is painful!
If the steps happen to be different(I believe the 64bit distros have a few 'gotchas'), I will report back.

Best Regards,
Scribbly
scribbly
 
Posts: 34
Joined: Tue Sep 30, 2008 12:57 am

Works Perfect now!

Postby jimmyp3016 » Mon Oct 27, 2008 3:06 pm

Thank you Thank you!

Installing 'xulrunner' from synaptic in Ubuntu and using

#!/bin/sh
MOZILLA_FIVE_HOME=/usr/lib/xulrunner
if [ $LD_LIBRARY_PATH ]; then
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME
fi
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
/home/yourusername/aptana/AptanaStudio

Made it work perfect! Thank you again Scribbly
jimmyp3016
 
Posts: 2
Joined: Mon Oct 27, 2008 3:03 pm

Aptana 1.2 on Ubuntu 8.10

Postby nhoj » Mon Nov 03, 2008 8:49 am

Hello.

I'm not sure if this issue has been posted already, but I have a problem running the latest Aptana build with Ubuntu's latest build.

Error: SWT error (cannot view My Aptana, as well as the internal preview of a web page), which halts all processes.

Any help/advice is appreciated.

Thank you.
nhoj
nhoj
 
Posts: 11
Joined: Thu Sep 18, 2008 11:19 pm
Location: Hattiesburg, MS

Postby blazar » Mon Nov 03, 2008 9:15 pm

See the last few comments before yours in this thread, their answers will likely help you.
blazar
 
Posts: 668
Joined: Wed Jul 02, 2008 9:54 pm

Postby nhoj » Mon Nov 03, 2008 10:00 pm

blazar wrote:See the last few comments before yours in this thread, their answers will likely help you.


My apologies, blazar. I was "browsing" through the long thread, I overlooked some of the topics. Aptana (1.2) now works perfectly on my Ubuntu Intrepid Ibex.

Thank you.
nhoj
nhoj
 
Posts: 11
Joined: Thu Sep 18, 2008 11:19 pm
Location: Hattiesburg, MS

Ubuntu Intrepid Ibex 8.1 32bit/i686

Postby scribbly » Tue Nov 04, 2008 6:53 am

Hi 'Aptana-ites' :wink: ,
Just an update for Ubuntu Intrepid Ibex 8.1 32bit/i686.
Synaptic is now installing 'xulrunner' version 1.8.1.16 at '/usr/lib/xulrunner'. This is tested as working fine.
As already posted, xulrunner version 1.9.?.? will cause the 'JVM terminated' error.

An update to the script allows you to select which java version Aptana uses from the command line using -vm to point to the java version you want to use. It would make sense to point to the links, rather than the folders, in case later updates add/remove/change the java point versions.

Code: Select all
#!/bin/sh
MOZILLA_FIVE_HOME=/usr/lib/xulrunner
if [ $LD_LIBRARY_PATH ]; then
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME
fi
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
~/aptana/AptanaStudio -vm /usr/lib/jvm/java-6-sun/jre/bin/java


Both 'java-6-sun' and 'java-1.5.0-sun' work fine.

Scribbly
scribbly
 
Posts: 34
Joined: Tue Sep 30, 2008 12:57 am

Postby tnntwister » Tue Nov 18, 2008 6:44 am

Hello, newbie tries to talk :)
After enjoying Aptana on Vista, XP, and OS X, i'm keeping the good habits with linux. :)
I'm using Mint 6 beta (based on 8.10 ubuntu).
IceTea was used, so i changed it.

Code: Select all
fenhn@fenhn-laptop ~ $ java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)


I've copied pasted the bash for ubuntu,

Code: Select all
#!/bin/sh
MOZILLA_FIVE_HOME=/usr/lib/xulrunner
if [ $LD_LIBRARY_PATH ]; then
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME
fi
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
~/aptana/AptanaStudio -vm /usr/lib/jvm/java-6-sun/jre/bin/java


no more VM termination, but a SWT issue. how can i solve this (and please forgive me if i should create another thread). If i find the log for aptana, i will give you more about my problem.
tnntwister
 
Posts: 3
Joined: Tue Nov 18, 2008 6:23 am

Postby scribbly » Tue Nov 18, 2008 7:36 am

Hi tnntwister,
Please double check that the following paths actually exist...
/usr/lib/xulrunner
/usr/lib/jvm/java-6-sun/jre/bin/java
and adjust the bash file accordingly if slightly different.
Also, make sure(using Synaptic) the XULRUNNER installation is 1.8.1.?

Best Regards,
scribbly
scribbly
 
Posts: 34
Joined: Tue Sep 30, 2008 12:57 am

PreviousNext

Return to Getting Started with Studio