I use ubuntu 12.10 and I downloaded eclipse-java-juno-SR1-linux-gtk.tar.gz.
1, tar 'eclipse-java-juno-SR1-linux-gtk.tar.gz' to /opt.
sudo tar zxvf eclipse-java-juno-SR1-linux-gtk.tar.gz -C /opt
2 Create a desktop file and install it:
-
gedit eclipse.desktop
and copy the following to the
eclipse.desktop
file.[Desktop Entry] Name=Eclipse Type=Application Exec=eclipse Terminal=false Icon=eclipse Comment=Integrated Development Environment NoDisplay=false Categories=Development;IDE; Name[en]=Eclipse
then execute the following command to automatically install it in the unity:
desktop-file-install eclipse.desktop
-
Create a symlink in
/usr/local/bin
usingcd /usr/local/bin ln -s /opt/eclipse/eclipse
-
For eclipse icon to be displayed in dash, eclipse icon can be added as
cp /opt/eclipse/icon.xpm /usr/share/pixmaps/eclipse.xpm