Thursday, February 3, 2011

Installing Eclipse Helios on Ubuntu 10.10

Eclipse Install on Ubuntu
 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 /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

19 comments:

  1. So awesome! Thanks!

    ReplyDelete
  2. Great great thank you :D

    ReplyDelete
  3. Nice 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?

    ReplyDelete
  4. thank you :)

    ReplyDelete
  5. WOW, I'm verry impressed! I was searching for such an easy and straigt to the point tut for a long time!
    Thank you :D

    ReplyDelete
  6. Hej dude, you just made the tutorial i was looking for. thanks a lot. finally got it after 3 downloads

    ReplyDelete
  7. Great! Thanks.

    ReplyDelete
  8. thankyou so much........your tutorial is so easy and it solved my problem

    ReplyDelete
  9. Excellent tutorial..keep up the good work!

    ReplyDelete
  10. Thanks for your help!!!

    ReplyDelete
  11. Thanks a lot. This tutorial was very helpfull for me. ;o))

    Roman

    ReplyDelete
  12. brilliant, awesome dude. made my work so easy. thanks a lot.

    ReplyDelete
    Replies
    1. I also had to copy the 'jre' folder from the Oracle JDK 7u2 install to the '/opt/eclipse' folder

      Delete
  13. I NEEDED TO FIX THIS:

    Exec= /opt/eclipse/eclipse

    ReplyDelete
  14. Worked when installing under VMbox run Ubuntu 11.04.

    Appreciated.

    ReplyDelete
  15. I had to 'sudo chmod 777 /user/bin/eclipse' so I could run it from the menu or in the terminal without sudo.

    ReplyDelete
  16. Thanks man!! it worked !

    ReplyDelete