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 :)

link|improve this question
feedback

migrated from stackoverflow.com Oct 17 '11 at 9:46

This question came from our site for professional and enthusiast programmers.

2 Answers

  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 this into nano

    #!/bin/sh
    #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 this into nano

    [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
    

    save and exit nano

  6. Launch Eclipse for the first time

    /opt/eclipse/eclipse -clean &
    
link|improve this answer
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. – nikhil Feb 21 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 – Afshin Feb 24 at 15:47
feedback

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

link|improve this answer
Indeed - the first answer here lists an extended method to totally integrate it. Just extracting it and running the eclipse executable works too :) – Jeroen Baert Feb 24 at 16:11
feedback

protected by Community Feb 25 at 9:29

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.