Extract the eclipse download and move to opt:

tar xvzf eclipse*.tar.gz
sudo mv eclipse /opt/eclipse

Then create an eclipse executable in your path:

sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudo gedit /usr/bin/eclipse

with this contents:

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

Then create a gnome menu item:

sudoedit /usr/share/applications/eclipse.desktop

with this contents:

[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

You now have a working eclipse, but run this command first to initialise the set up:

/opt/eclipse/eclipse -clean

Categories & Tags


Related


Share