How To Install The Latest Version of Eclipse on Ubuntu

Brief: This article shows you the easy way to install the latest Eclipse version on Ubuntu Linux.

If you are into programming, you can always choose to write programs using the plain old text editors. And that will work for small projects with only a few files, or if you want to write small scripts or snippets.

But if you are considering serious programming or working on a not-so-small project, a normal text editor isn’t going to cut it anymore. You will need tools for organizing file structure, syntax highlighting, debugging, compiling and other necessary things depending on which type of project or language you are working with.

That is where Integrated Development Environment, or in short IDE, comes in. An IDE combines various tools for seamless development with a specific programming language. Generally, it contains code editor with syntax highlighting, compiler and/or interpreter, debugging tools and other features that are needed to work with that specific language. Multi-language supported IDEs are also available.

Install the latest Eclipse on Ubuntu Linux

Note: Make sure you have Java installed on your system. You can follow our guide to install Java on Ubuntu Linux.

Eclipse is one such IDE that is primarily used for Java development. It can also be used with other languages, such as — C++, PHP, etc. Other languages support can be added on top of an existing installation or they can be installed as separate Eclipse packages.

You can use other modern open-source code editors for programming but if you ask me, I’ll always vote for Eclipse. And so, today we are going see how we can install the latest version of Eclipse on Ubuntu.

Eclipse IDE Interface
Eclipse IDE Interface

Installing the latest Eclipse on Ubuntu Linux

The apt package manager provides an old version of Eclipse in Ubuntu. This is why I won’t recommend using sudo apt install eclipse.

Eclipse doesn’t provide an official PPA or an easy way to install the latest version of it on Ubuntu. However, we shall mention two easy methods you can follow to easily install Eclipse on Ubuntu or any other Linux distro.

Method 1: Installing Eclipse using Snap [Easy]

You can install the snap package available for Linux. You can either install it from the terminal or the software center in Ubuntu.

Open the Software Center application in Ubuntu and search for Eclipse and install it from there.

Eclipse Snapcraft
Eclipse Snapcraft

We also have a guide on using snap packages if you are not sure about the support for snap packages for your Linux distributions.

If you proceed to install it via the terminal, here’s what you have to type in:

sudo snap install eclipse --classic

Method 2: Installing Eclipse from the official package [Slightly Complicated]

Eclipse Latest Ide

Make sure you don’t confuse “package” with the installer available. You can find the latest package for Eclipse here.

It is also worth noting that we assume the directory ‘Downloads’ as your default storage path to save the Eclipse package downloaded. If you have a different path, replace the file path from our set of steps.

So, once you have downloaded the package for Linux, simply follow the steps mentioned below to complete the installation:

1. Launch the terminal and enter the following command:

cd /opt

2. Next, you have to extract the downloaded package to this directory by entering the following command:

sudo tar -xvzf ~/Downloads/eclipse-jee-2019-09-R-linux-gtk-x86_64.tar.gz

3. Now after extracting the files, we have to make a menu entry (so that when you search for Eclipse, an icon will come up in the app drawer). Here’s what to enter next:

sudo gedit eclipse.desktop

Basically, we are making the file for the shortcut icon here. Next, we need to set up the shortcut to launch Eclipse. So, when the text editor opens, enter the following information and save it (copy-paste what’s written below):

[Desktop Entry]
Comment=Integrated Development Environment

4. Close the text editor and enter the following command to enable the shortcut icon:

sudo desktop-file-install eclipse.desktop

And, that’s it!

Now, you just have to search for Eclipse in the app drawer and launch it.

Eclipse Desktop Shortcut
Eclipse Shortcut

Wrapping Up

You can run Java programs in the Linux terminal but that is tiresome. Use an IDE like Eclipse and speed up your coding process.

If you face any kind of issues with the installation by following my procedure, make sure to let me know in the comments below.

Also, if you are new to Eclipse or want to know more about it, I would recommend you to head over to the official Eclipse website where you can find all kinds of documentation and guides on it.

Oh! and if you are a dark theme fan, you can change the color theme in Eclipse using additional plugins. Enjoy coding with Eclipse.

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world


Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.