I have downloaded Eclipse Indigo 3.7.1 . I used to try to install it into Ubuntu 11.10 as install on Ubuntu 11.04 but it doesn't work. Please anyone tell me how to install it into Ubuntu 11.10.

Sorry for my English :)


2 Answers 2

  1. Download one of the available Eclipse bundles from the official site. I got eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz

  2. Extract it

    tar xzf eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz

    Or just be lazy and Right Click > Extract Here

  3. Move to /opt/ folder

    mv eclipse /opt/
    sudo chown -R root:root eclipse
    sudo chmod -R +r eclipse
  4. Create an eclipse executable in your path

    sudo touch /usr/bin/eclipse
    sudo chmod 755 /usr/bin/eclipse
    sudo nano /usr/bin/eclipse

    copy the following into /usr/bin/eclipse

    #export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
    export ECLIPSE_HOME="/opt/eclipse"
    $ECLIPSE_HOME/eclipse $*

    save the file (^O = Ctrl+o) and exit nano (^X = Ctrl+x)

  5. Create a gnome menu item

    sudo nano /usr/share/applications/eclipse.desktop

    copy the following into /usr/share/applications/eclipse.desktop

    [Desktop Entry]
    Comment=Eclipse IDE

    save and exit nano

  6. Launch Eclipse for the first time

    /opt/eclipse/eclipse -clean &
  • After executing command: /opt/eclipse/eclipse -clean & this line is printed in terminal /usr/bin/eclipse: 5: /opt/eclipse/eclipse: not found please respond to it.
    – user47353
    Feb 21, 2012 at 11:19
  • because your first instruction did not work properly you should put "sudo " befor that to access /usr/ from root I mean that write this line instead of first line sudo mv eclipse /opt/ then just type the last line again : /opt/eclipse/eclipse -clean & I hope this will work :D
    – user47886
    Feb 24, 2012 at 15:47
  • is there an implicit changing of directories after you move the "eclipse" folder into "opt"? Because subsequent chown & chmod commands don't have anything locally (or globally) to operate on.
    – weberc2
    Dec 28, 2012 at 2:30

I don't think eclipse needs 'install', just extract(unpack) it and everything is ok.

  • Indeed - the first answer here lists an extended method to totally integrate it. Just extracting it and running the eclipse executable works too :) Feb 24, 2012 at 16:11
  • -1: While this works, it's inconsistent with application installation on the Ubuntu platform. Moreover, platform tools aren't aware of its location, so things like launchers or uninstallers don't know about it out-of-the-box.
    – weberc2
    Dec 28, 2012 at 2:29