Thursday, 22 June 2017

Eclipse Installation in linux

Download the Eclipse installation tar/zip for linux from https://eclipse.org/

Extract it
$ cd ~/Downloads
$ tar xvf eclipse-SDK-3.7.2-linux-gtk-x86_64.tar.gz


Move to /opt folder
$ sudo mv eclipse /opt/

$ cd /opt

$ sudo chown -R root:root eclipse

$ sudo chmod -R +r eclipse


Create an eclipse executable in your path
$ sudo touch /usr/bin/eclipse

$ sudo chmod 775 /usr/bin/eclipse

$ gksu gedit /usr/bin/eclipse
and copy paste the below code:

#!/bin/sh
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*

and finally save the file.

Create a gnome menu icon
$ gksu gedit /usr/share/applications/eclipse.desktop
and copy paste the below code:



[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

Launch:
$ /opt/eclipse/eclipse -clean &

Install latest version python

Donwload and Install PyDev Plugin:
Install New Software
In Work with: type PyDev - http://pydev.org/updates and press tha button Add... Then check the first option PyDev and click Next

When you see the Selection Needed dialog box, you must manually check the box before pressing okay
Go to Window  Preferences. In the Preferences window, expand PyDev and select Interpreter-Python.

Click on Advanced Auto-configure