Tag Archives: eclipse

Rails for Eclipse!

Aha! There is RoR support for Eclipse, via Aptana. I’ve just installed it and the instructions are a bit cryptic. Basically you have to install Aptana first (you can do this as an Eclipse plug-in). Then restart Eclipse and then install the Rails plugin called RadRails. Aptana also has Python and PHP support.

Install Aptana:

In Eclipse click on Help->Software Updates. Then click on the Available Software tab, then click on Add Site and paste this URL into the Dialog Box that opens:
http://update.aptana.com/install/3.2/

Eclipse Aptana Install Dialog
Eclipse Aptana Install Dialog

Install Aptana, then restart Eclipse. Aptana will then prompt you to install the Subversion plugin, then restart.

When Eclipse restarts following the same procedure as above, except add the following site for Rails support:
http://update.aptana.com/install/rails/3.2/

And restart Eclipse. Aptanta may prompt for further plugins, some of which are from their Professional version which will only work for 60 days.

This works with Eclipse 3.4, and should work on 3.3 and 3.2.

IBM shows how to use RadRails:

http://www.ibm.com/developerworks/opensource/library/os-ecl-radrails/

Complete install instructions:

http://ubuntumagnet.com/2008/01/installing-eclipse-radrails-and-subclipse-under-ubuntu-710-gutsy-gibbon

Eclipse 3.3.2 and Debian

So I wanted to install Eclipse at home, the version that comes with Debian is 3.2.2-5 and I wanted to try 3.3.x and install WTP and some other plugins that aren’t packaged with Debian (anyone know why?).

After downloading and installing Eclipse the welcome screen would appear with an error message saying:

Error creating the view.

org.elipse.core.runtime.Plugin

This is because the default jvm or java executable on my system was one provided by gcj and for some reason Eclipse’s eclipse doesn’t seem to work properly with gcj (or I had a too old version), Debian’s 3.2.2 Eclipse packages seem to work fine with gcj. Gcj is an Open Source Java compiler provided by GNU.

Using Sun’s JVM solved this. To install Sun’s JVM, if you don’t already have it, issue the following command:

aptitude install sun-java5-bin

Debian uses what’s called alternatives, this means that the java executable /usr/bin/java is actually a symbolic link to /etc/alternatives/java which itself is a symbolic link to the real java executable. You can manually change the links in /etc/alternatives or run:

update-alternatives –all

And change all the java tools to point to the ones that come with the Sun JVM. Alternatively, you can install galternatives which is an easy to use GUI tool to manage alternatives.

Updated March 2008: Corrected misspellings, and grammatical mistakes.