Personal tools
You are here: Home resources docs eclipse Install Eclipse on Ubuntu Hardy 8.04.2 LTS The Right Way

Install Eclipse on Ubuntu Hardy 8.04.2 LTS The Right Way

Requirements

 

Install java-6 or higher from sun

Installing Java on Ubuntu Hardy 8.04 LTS The Right Way

 

Installation

Create a tmp directory to hold our download

 

mkdir /home/${USER}/Desktop/tmp

Move into our new directory

cd /home/${USER}/Desktop/tmp

Download Eclipse

Eclipse 3.4.2

(from Waterloo in Canada)

wget http://mirror.csclub.uwaterloo.ca/eclipse/eclipse/downloads/drops/\
R-3.4.2-200902111700/eclipse-SDK-3.4.2-linux-gtk-x86_64.tar.gz&mirror_id=492

Make a directory for eclipse

sudo mkdir /usr/local/opt

Unarchive Eclipse to our installation directory

sudo tar zxfv eclipse-SDK-3.4.2-linux-gtk-x86_64.tar.gz -C /usr/local/opt

Download an Eclipse Icon

 

ganymede-icon.png

wget http://universalcake.com/resources/docs/eclipse/ganymede-icon.png

OR

eclipse-icon.jpg eclipse-icon.jpg

wget http://universalcake.com/resources/docs/eclipse/eclipse-icon.jpg

Move the icon to our Eclipse installation

(in this example we are using the eclipse-icon.jpg)

sudo mv eclipse-icon.jpg /usr/local/opt/eclipse/

Set permissions for our Installation

cd /usr/local/opt
sudo chown -R root:root eclipse
sudo chmod -R +r eclipse
cd /usr/local/opt/eclipse
sudo chmod +x eclipse

Create an executable shell (script) for eclipse.

Create a file to hold our script

sudo touch /usr/local/bin/eclipse

Set our start script permissions

sudo chmod 755 /usr/local/bin/eclipse

Create the content for our script

sudo gedit /usr/bin/eclipse

Insert the following:

#!/bin/sh
export ECLIPSE_HOME="/usr/local/opt/eclipse"
$ECLIPSE_HOME/eclipse $*

Create a GNOME menu item

sudo gedit /usr/share/applications/eclipse.desktop

Insert the following:

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse Ganymede IDE
Exec=/usr/local/opt/eclipse/eclipse
Icon=/usr/local/opt/eclipse/eclipse-icon.png
Terminal=false
Type=Application
Categories=GNOME;Application;Development
StartupNotify=True

save the file

Initialize Eclipse

From Terminal (do we really need to include the period????)

/usr/local/opt/eclipse/eclipse --clean.

You should now have an Eclipse icon in the menu. On the Gnome desktop go to:

Applications -> Programming and you should see your Eclipse icon.

Resources

Eclipse Help

http://help.eclipse.org/ganymede/index.jsp

References

Ubuntu Forums

http://ubuntuforums.org/showthread.php?t=941461

Eclipse Site

http://www.eclipse.org/

 

 

Document Actions