Tuesday, November 24, 2009

Installing Eclipse Galileo 3.5 on 64 Studio aka Ubuntu Hardy

The eclipse package that is in the repo for 64 studio is the old 3.2 from Ubuntu Hardy.  Let's get the newer Galileo Eclipse installed. Start by opening a terminal and installing the needed Sun Java packages.

brian@64studio:~$ sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin sun-java6-fonts

Download the latest package of your desired variety from http://eclipse.org/downloads/.

brian@64studio:~$ tar xvfz eclipse-jee-galileo-SR1-linux-gtk.tar.gz

Your version may differ here.

brian@64studio:~$ sudo mv eclipse /opt/
brian@64studio:~$ sudo chown -R root:root eclipse
brian@64studio:~$ sudo chmod -R +r eclipse
brian@64studio:~$ sudo chmod +x `sudo find eclipse -type d`

brian@64studio:~$ sudo touch /usr/bin/eclipse
brian@64studio:~$ sudo chmod 755 /usr/bin/eclipse
brian@64studio:~$ gksudo gedit /usr/bin/eclipse

Paste the following into the file:
#!/bin/sh
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*

brian@64studio:~$ gksudo gedit /usr/share/applications/eclipse.desktop

Paste the following into the file:
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true

Depending on your Java situation, you may have to tell it what version to use:
http://www.ubuntugeek.com/how-to-install-and-setup-eclipse-with-suns-java.html

Start it up with:
brian@64studio:~$ eclipse
or goto applications > Programming > Eclipse!

Thanks to these pages for their help!
https://help.ubuntu.com/community/EclipseIDE
http://knol.google.com/k/hemanth-h-m/java-and-eclipse-on-ubuntu/28s5hvh66sr3n/6#

No comments: