Pages

Thursday, June 25, 2015

How to install Eclipse Mars 4.5 on Ubuntu

Installing Eclipse

  1. Download Eclipse from here
  2. Extract it and you will end up having a folder named eclipse


  3. Save it wherever you wish
    • I saved mine in ~/Programs/eclipse


Adding a launcher shortcut

  1. Press CTRL+ALT+T to open Terminal
  2. Run the following commands:

  3. sudo ln -s *eclipse path* /usr/bin/eclipse
    • make sure you replace *eclipse path* with the location where you previously saved eclipse - in my case it is ~/Programs/eclipse/eclipse

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

  4. After these commands, gedit - Ubuntu's default text editor - should have opened
  5. Copy the following text and paste it there:

  6. [Desktop Entry]
    Name=Eclipse
    Type=Application
    Exec=/home/henrique/Programs/eclipse/eclipse
    Terminal=false
    Icon=/home/henrique/Programs/eclipse/icon.xpm
    Comment=Integrated Development Environment
    NoDisplay=false
    Categories=Development;IDE;
    Name[en]=Eclipse
    X-Desktop-File-Install-Version=0.22


    • You need to replace the Exec and Icon paths to the location where you previously saved eclipse



  7. Save the text file and close gedit
  8. A shortcut should have been successfully created


  9. You may have to log off and back in for it to show up

36 comments:

  1. I have ubuntu 14.04 and attempted to follow the steps above for installing Mars eclipse.
    Unfortunately, the steps here did not work. It resulted in the error - "There was an error launching the application".

    Can you help on how to solve the problem.


    FYI, I downloaded the linux 64 bit version of eclipse mars from the links you provided above

    ReplyDelete
    Replies
    1. Have you installed jdk?

      sudo apt-get install openjdk-7-jdk

      Delete
    2. This the message I get when I run that on the terminal:
      E: Could not get lock /var/lib/dpgk/lock - open (11: Resource temporaraly unavailable)
      E: Unable to lock the administration directory (/var/lib/dgpk/), is another process using it?

      Delete
    3. ok, It got accepted now, though the the result when I run it now is:
      E: unable to locate package openjdk-7-jdk

      Delete
  2. Thank you so much for Help.

    ReplyDelete
  3. Thanks a lot. Followed your instructions and it works just fine.
    Very nice job.

    ReplyDelete
  4. thanks for sharing

    ReplyDelete
  5. Thanks!
    It works great.
    But when I click on my icon nothing happens

    ReplyDelete
    Replies
    1. yeah nothings happen on clicking the icon, how to start eclipse

      Delete
  6. Thank you very much! This tutorial is really helpful! Will share!

    ReplyDelete
  7. Hi Henrique,
    Thanks a lot for this tutorial, is perfect!


    -Ricardo

    ReplyDelete
  8. I have ubuntu 14.04 & by mistakely install eclipse
    3.8 but i need to intall eclipse mars !! Please help

    ReplyDelete
    Replies
    1. Press Alt
      Write Eclipse
      Select the Eclipse version you installed by mistake
      Click "Uninstall"
      :)

      Delete
  9. I got an error after I save the gedit file. It says Gtk-Warning. I just ignored it and eclipse won't launch.

    ReplyDelete
  10. simple and precise description, it works perfect! Thanks!

    ReplyDelete
  11. Not working...getting an error "An error has occurred. See the log file null."

    ReplyDelete
  12. Is this eclipse 2015 , where I could use it for mobile app , phone gap?

    ReplyDelete
  13. How Do I know X-Desktop-File-Install-Version of my downloaded eclipse?

    ReplyDelete
  14. If you need your ex-girlfriend or ex-boyfriend to come crawling back to you on their knees (even if they're dating somebody else now) you need to watch this video
    right away...

    (VIDEO) Get your ex back with TEXT messages?

    ReplyDelete