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-3.3.1.1-linux-gtk.tar.gz

Where eclipse-SDK-3.3.1.1-linux-gtk 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:
#!/bin/sh
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]
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 can run eclipse by typing eclipse in your terminal or double on icon

Comments

Popular posts from this blog

Encrypt MySQL data using AES techniques