Thursday, December 22, 2011

Install eclipse SDK 3.7.1 on Ubuntu

arranged by Oman (from http://www.if-not-true-then-false.com/2010/linux-install-eclipse-on-fedora-centos-red-hat-rhel/)

adopted for Ubuntu

- download eclipse-SDK-3.7.1-linux-gtk.tar.gz

terminal:
>> root mode
sudo -i
>> locate eclipse-SDK-3.7.1-linux-gtk.tar.gz
>> untar SDK on /opt
tar -xvzf eclipse-SDK-3.7.1-linux-gtk.tar.gz -C /opt
>> add permission for /opt/eclipse
chmod -R +r /opt/eclipse
>> create executable file
touch /usr/bin/eclipse
chmod 755 /usr/bin/eclipse
nano -w /usr/bin/eclipse
>> add following to file
#!/bin/sh
export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*
>> create shortcut
>> open shortcut
gedit /usr/share/applications/eclipse.desktop
>> add/replace the existing with following
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse SDK 3.7.1
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true

>> call from commandline: eclipse
>> or from desktop shortcut