Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question

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

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

    

2 Answers 2

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

share|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 '12 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 '12 at 2:29
  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

    #!/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 the following into /usr/share/applications/eclipse.desktop

    [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 &
    
share|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. –  user47353 Feb 21 '12 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 '12 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 '12 at 2:30

protected by Community Feb 25 '12 at 9:29

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?