easy eclipse set in ubuntu linux

To install eclipse on ubuntu you need to download it first from http://www.eclipse.org/downloads/ Extract the downloaded file by right click on it and extract here or running the following:

tar xzf dir/eclipse-SDK-

Where eclipse-SDK- is your eclipse-SDK name with version and dir is the directory of eclipse-sdk.

Now move it to the root directory. Apply the following command to do this.
sudo mv dir/eclipse ~
Now you are ready to configure your eclipse. To do this follow the following step by step...

sudo mv eclipse /home/<your user name>/opt/
Take care of the permissions:
sudo chmod -R +r /home/<your user name>/opt/eclipse
sudo chmod +x /home/<your user name>/opt/eclipse/eclipse

Create an executable in your path:
sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudo gedit /usr/bin/eclipse

Copy the following content and save the file:
export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*
Let’s also make eclipse executable everywhere by creating a symlink:
sudo ln -s /usr/bin/eclipse /bin/eclipse

Create the menu icon:
 sudo gedit /usr/share/applications/eclipse.desktop

Type in this content and save:
[Desktop Entry]
Comment=Eclipse IDE

you can run eclipse by typing eclipse in your terminal or double on icon


Popular posts from this blog