Pages

Sunday, July 20, 2014

How to install Eclipse Luna (4.4) on Ubuntu

Installing Eclipse

  1. Download Eclipse from here;
  2. Extract it. You will end up having a folder named eclipse, copy it;



  3. Press CTRL + ALT + T to open Terminal;
  4. Type the command:
    sudo nautilus
    and then insert your password;



  5. Browse to /opt/ and paste the extracted folder there.


Creating a shortcut

  1. Press CTRL + ALT + T to open Terminal;
  2. Type:
    sudo ln -s /opt/eclipse/eclipse /usr/bin/eclipse
    sudo gedit /usr/share/applications/eclipse.desktop
  3. After these commands, gedit (ubuntu's default text editor) should have opened. Copy this and paste it there:
    [Desktop Entry]
    Name=Eclipse
    Type=Application
    Exec=/opt/eclipse/eclipse
    Terminal=false
    Icon=/opt/eclipse/icon.xpm
    Comment=Integrated Development Environment
    NoDisplay=false
    Categories=Development;IDE;
    Name[en]=Eclipse
    X-Desktop-File-Install-Version=0.22


  4. Save the text file and close gedit;
  5. This should have successfully created a shortcut. You may have to log off and back in for it to show up.


13 comments:

  1. Great. This was really helpful for me. Thanks!

    ReplyDelete
  2. great and it works as a charm.
    thanks a lot

    ReplyDelete
  3. I finished all these steps but the shortcut doesn't appear !!!

    ReplyDelete
    Replies
    1. quoting from above: "This should have successfully created a shortcut. You may have to log off and back in for it to show up."
      if it still does not show up, review the required steps.. you probably skipped something

      Delete
  4. We can create as many desktop entry for eclipse various version.
    For eclipse luna
    change the folder name to eclipse_luna which is extracted.

    sudo ln -s /opt/eclipse/eclipse /usr/bin/eclipse
    And create eclipse_luna desktop entry in /usr/share/applications/
    sudo touch eclipse_luna.desktop /usr/share/applications/
    sudo gedit /usr/share/applications/eclipse_luna.desktop
    and then change the file as per following.
    [Desktop Entry]
    Name=Eclipse
    Type=Application
    Exec=/opt/eclipse_luna/eclipse
    Terminal=false
    Icon=/opt/eclipse_luna/icon.xpm
    Comment=Integrated Development Environment
    NoDisplay=false
    Categories=Development;IDE;
    Name[en]=Eclipse_Luna
    X-Desktop-File-Install-Version=0.22

    ReplyDelete
  5. its helpfull but its long, does anyone know how to install via PPA,

    ReplyDelete
  6. Great. Works fine and super clear explanation.

    Many thanks...

    ReplyDelete
  7. I finished all steps but the eclipse is not shown in search. But when i look all my desktop icon in usr/share/applications/eclipse.desktop and open with right click error(There was an error launching the application) I googled it and find some java exec path issue. please help

    ReplyDelete
  8. This deserves a Noble Prize Award.. Thank you for creating this tutorial..

    You rock sir.. \m/

    ReplyDelete
  9. Worked like a charm...thanks.

    ReplyDelete
  10. thanks for giving an installation cmd.it's very useful for me

    ReplyDelete


  11. I tried with above settings to install Eclipse luna 4 on ubuntu but it didn't work.

    ReplyDelete