Eclipse Install on Ubuntu
sudo mv eclipse /opt/
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
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 /opt/
Take care of the permissions:
sudo chmod -R +r /opt/eclipse
sudo chmod +x /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 MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
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
..................................................
Run for the first time:
eclipse -clean
You can now start Eclipse by simply typing eclipse in the terminal or from the GNOME menu Applications -> Programming -> Eclipse
sudo chmod -R +r /opt/eclipse
sudo chmod +x /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 MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
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
..................................................
Run for the first time:
eclipse -clean
You can now start Eclipse by simply typing eclipse in the terminal or from the GNOME menu Applications -> Programming -> Eclipse
Excellent job done
ReplyDeleteSo awesome! Thanks!
ReplyDeleteGreat great thank you :D
ReplyDeleteNice tutorial. One thing I missed was how do you get the icon to appear in the taskbar (Ubuntu 11.04) when launching the application from the command shell?
ReplyDeletethank you :)
ReplyDeleteWOW, I'm verry impressed! I was searching for such an easy and straigt to the point tut for a long time!
ReplyDeleteThank you :D
Hej dude, you just made the tutorial i was looking for. thanks a lot. finally got it after 3 downloads
ReplyDeleteGreat! Thanks.
ReplyDeletethankyou so much........your tutorial is so easy and it solved my problem
ReplyDeleteExcellent tutorial..keep up the good work!
ReplyDeleteThanks for your help!!!
ReplyDeleteThanks a lot. This tutorial was very helpfull for me. ;o))
ReplyDeleteRoman
brilliant, awesome dude. made my work so easy. thanks a lot.
ReplyDeleteI also had to copy the 'jre' folder from the Oracle JDK 7u2 install to the '/opt/eclipse' folder
DeleteI NEEDED TO FIX THIS:
ReplyDeleteExec= /opt/eclipse/eclipse
Worked when installing under VMbox run Ubuntu 11.04.
ReplyDeleteAppreciated.
I had to 'sudo chmod 777 /user/bin/eclipse' so I could run it from the menu or in the terminal without sudo.
ReplyDeleteThanks man!! it worked !
ReplyDeletedude you r awesome!.. thanks!..:)
ReplyDelete