Eclipse IDE arguably has its place among the top IDEs developers use in today’s DevOps landscape, and rightfully so. Eclipse IDE is a cross-platform IDE with flavors that work on Windows, Linux, and macOS.
When you install Eclipse IDE, there are several profiles to choose from, and chances are, there’s one that fits your preferences. If you’re wondering how to install Eclipse IDE Linux version, you’re in luck because this post will show you several ways to install Eclipse IDE.
All you need is a Linux computer. This post will use an Ubuntu Desktop 20.04, but the process should also work with other distros.
Method 1: Install Eclipse IDE Linux as a Snap
A Snap package contains all the requirements or dependencies for an app to work. Installing a Snap means you don’t need to worry about its compatibility with your system because everything it needs is already prepackaged and consistent in every install.
More importantly, the background service called snapd manages the automatic updates of your Snaps. This way, you’ll always have the latest available Snap version of the application without running manual updates.
But, when you install Eclipse IDE Linux Snap, the version may be behind the official release. The Snap publishing may happen at different times than the official Eclipse IDE release.
To install Eclipse IDE Linux as a Snap, follow these steps.
- Open a terminal on your Linux machine.
- Check if snapd is installed:
- If snapd is not installed, install it by running this command:
sudo apt install -y snapd
- Once snapd is installed, run the snap command to install Eclipse IDE:
snap install eclipse --classic
Wait for the installation to finish.
Method 2: Install Eclipse IDE Linux using the Eclipse Installer Package
- Open a browser and visit the Eclipse IDE downloads page.
- Look for the Linux link and click to download the installer.
- On the next page, click Download.
- Choose to save the file and click OK.
- Once downloaded, open a terminal window and change the working directory to your Downloads folder:
- Next, extract the installer by running the following command. This command will extract the file using gzip and show the progress on the screen.
tar -xvzf eclipse-inst-jre-linux64.tar.gz
As you can see below, the installer extracts to the eclipse-installer subfolder.
- Now, change the working directory to the eclipse-installer location and run the installer:
cd eclipse-installer/ ./eclipse-inst
- Once the Eclipse installer is up, you can choose the installation profile. The options include:
- Eclipse IDE for Java Developers.
- Eclipse IDE for Enterprise Java and Web Developers
- Eclipse IDE for C/C++ Developers
- Eclipse IDE for Embedded C/C++ Developers
Choose the Eclipse IDE profile you wish to install. This example will choose the one for Java Developers.
- Choose the Java version and specify the installation folder. In most cases, you don’t need to change the default values. Click Install to proceed.
- The License agreement page pops up. Review (or not) the license document and click Accept Now.
The Eclipse IDE install will begin. The duration will vary depending on your internet speed and system capacity. The process downloads the artifacts online, such as the Java installation files.
- Once finished, you can launch Eclipse IDE by clicking on the big green Launch button.
Starting Eclipse IDE for the First Time
Regardless of how you install Eclipse IDE, the methods of launching it are consistent.
You can launch Eclipse IDE from the Applications shortcut.
From the Desktop shortcut.
Or from the terminal (not applicable if Eclipse IDE was installed using the Eclipse installer).
Once the Eclipse IDE Launcher appears, specify the path for the workspace that will contain the preferences and development artifacts. To avoid being prompted for the same information in the future, check the Use this as the default and do not ask again box, and click Launch.
And that’s it! You’ve successfully finished the Eclipse Ubuntu installation.
As you have learned, to install Eclipse IDE is not a complicated task. In fact, the variety of installation methods gives you the confidence to install it using the tool you’re comfortable with.
Either installation method will give you virtually the same result, with very minor differences. But if you want Eclipse IDE to update automatically, go with the Snap installation method. If you want more control over when and how to install the latest Eclipse IDE version, then the Eclipse installer path is for you.