I downloaded the Linux Eclipse installer from its site. By default, it is installed in home folder. No desktop shortcuts nothing else. Just a copy to a folder.

How can I install it the same way as is installed by sudo apt-get install eclipse?

  • Yes Eclipse is in the repos, you don't need that version from the site, you can install by terminal.
    – Mark Kirby
    Nov 8, 2015 at 8:22
  • @markkirby have you ever checked the version in the Ubuntu repository?
    – A.B.
    Nov 8, 2015 at 8:36
  • Nope, I don't use it but OP never asked about versions, just can they install via sudo apt-get install eclipse or do you think I miss read this question ? @A.B.
    – Mark Kirby
    Nov 8, 2015 at 8:38
  • The version in the repositories is old and the official installer is an easy way to install a recent version.
    – A.B.
    Nov 8, 2015 at 8:48
  • Would you please post the full name of the file with its extension?
    – Raphael
    Nov 8, 2015 at 11:31

5 Answers 5


Here are all instructions. You have to create a desktop file, see the last point in my answer.

  1. Download the installer here

  2. Extract the archive, e.g the 64-bit version

    tar xf eclipse-inst-linux64.tar.gz
  3. Change your folder

    cd eclipse-installer
  4. Run the installer WITHOUT sudo to UPGRADE the installer

    • Note the yellow exclamation mark in the top right corner.

      enter image description here

    • Activate the hamburger menu to upgrade the installer.

      enter image description here

    • Close the installer after the upgrade

  5. Install Eclipse without OR with sudo rights

    • Without sudo to install Eclipse in your home folder

      • select your Eclipse distribution

        enter image description here

      • and use a path inside your home folder

        enter image description here

    • OR with sudo to install Eclipse in /opt.

      sudo ./eclipse-inst
      • select your Eclipse distribution

        enter image description here

      • and use /opt as installation path

        enter image description here

  6. Finished

    enter image description here

  7. Create a desktop file

    Crazy, we have a installer but no desktop files. Perhaps, this will be fixed in future versions of the installer. In the meantime:

    nano ~/.local/share/applications/eclipse.desktop

    and add the configuration below. Note, you have to change the pach for Exec and/or Icon if you have used a different location.

    [Desktop Entry]
    Name=Eclipse IDE
    Comment=Eclipse Integrated Development Environment
  • 4
    Don't do that. The version in the repositories is old
    – A.B.
    Nov 8, 2015 at 15:29
  • 1
    Also the if I sudo install it. it is not run normally. It can be run only with sudo. Nov 8, 2015 at 15:32
  • 1
    Use the installer as described in my answer ynd you will be happy.
    – A.B.
    Nov 8, 2015 at 15:33
  • 5
    It says: The Eclipse executable launcher was unable to locate its companion shared library. When I run eclipse in opt. Nov 8, 2015 at 21:08
  • 4
    @A.B. - I don't think that is a separate question. This method doesn't work using sudo. I am also getting the same thing. Apr 22, 2016 at 16:47

Unfortunately I don't have enough points to write a reply to the above answer by A.B. There is only one more step that you need to take if you want to install the application for all users under /opt:

You need to switch to the advanced mode and change the bundle pool folder to something like /opt/eclipse/.p2/pool. This is because when installing it with sudo, the installer chooses /root/.p2/pool by default for the bundle pool location, which can't be opened by your user. After that you should be able to open eclipse from your regular user. Hope this helps.

  • ... this change has to be done in eclipse.ini of Eclipse root
    – lemrm
    Oct 19, 2020 at 13:27

Eclipse is now available as a snap. You can install it easily with one simple command:-

snap install eclipse --classic 

This single snap will work on Ubuntu 14.04, 16.04, 17.10 and 18.04.

You will need to ensure Java is installed:

  • Whoever you are, where ever you are from. God Bless you, man! Worked Perfect. Thanks. May 8, 2018 at 15:15

The jre part is missing and is simple as

sudo apt-get install default-jdk

Then run the sudo ./eclipse-inst

The online installer hung up on me I was using ubuntu GNOME 16.4, So I had to installed the specific version of eclipse from


If you face issue while installing Eclipse, just check your connected network allowing you to access websites for installation. While installing eclipse communicate to server for the verification of Certificate.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .