Site icon WPDig.com

How to install Eclipse on Ubuntu Linux

This post shows students and new users how to install Eclipse IDE on Ubuntu Linux. Eclipse is a very popular cross-platform Java Integrated Development Environment (IDE) that can easily install and manage your Java-based projects.

Eclipse comes with plugins to extend its functionality to support programming languages ​​such as PHP, JavaScript, C ++, and more. If you want an easy-to-use IDE platform to build your next application, you might want to take a look at Eclipse.

Eclipse packages are available in the default Ubuntu repositories. However, the version available in the default repositories is out of date. Next, we will show you how to easily install the latest version.

Also, for students and new users learning Linux, the easiest place to start learning is Ubuntu Linux. Ubuntu is the modern open source Linux operating system for desktops, servers, and other devices.

For more information on Eclipse, see your Homepage.

To install Eclipse on Ubuntu, follow the steps below:

How to install OpenJDK on Ubuntu Linux

Because Eclipse is a Java-based IDE, you will need to install the Java Runtime Environment (JRE) to run it. You will need to install the OpenJDK package with the JRE. If you haven’t installed OpenJDK, use the link below.

How to install OpenJDK on Ubuntu

After installing OpenJDK above, run the following commands to install JRE.

sudo apt update
sudo apt install default-jre

The above commands will update the Ubuntu package index and install the OpenJDK and JRE packages to support Eclipse.

How to install Eclipse from Snap

After installing the Java JRE above, run the following commands to install Eclipse from Snap. Snaps They are containerized software packages that are easy to create and install. Snap apps are packed with all their dependencies to run on all popular Linux distributions from a single build, allowing them to automatically update and gracefully roll back.

sudo apt install snap
sudo snap install --classic eclipse

The above commands will install the latest version of Eclipse from Snap.

When you run the above commands, after a successful installation, you should receive a message similar to the following.

eclipse 2019-12 from Snapcrafters installed

After the installation is complete, you can start typing eclipse in your terminal or by clicking on the Netbeans icon on the Activities -> Eclipse.

How to install Eclipse manually on Ubuntu

If the first method above is not what you want, you can manually download the Eclipse installer and install the package. Eclipse has its installer that you can use to install it on Ubuntu Linux.

First, go to the link below to download the installer. At the time of this publication, the current version is 2021-09.

Download the Eclipse installer

When you click the Download link to download the installer, it will ask you what to do with the file. Choose the save option. By default, when you download through Firefox, it is automatically saved to your Downloads folder.

Once the file has downloaded and saved to your Downloads folder, run the following commands to extract it.

tar xfz ~/Downloads/eclipse-inst-jre-linux64.tar.gz

After extracting the file, run the following commands to start the installation wizard. The installer will help you install the version.

~/eclipse-installer/eclipse-inst

Choose the package you want to install. Usually the package for the language in which you will create your programs.

On the next screen, choose the version of OpenJDK installed using the drop-down option. Install the installation folder may remain the default.

After a short moment, the installation should complete and Eclipse should be ready to use. Click the Start button to open Eclipse.

If you installed it through the manual option, you may need to create an icon on your desktop to start the program. You can run the following commands to create a simple desktop icon for Eclipse.

nano ~/Desktop/eclipse.desktop

Then copy and paste the content below into the file and save it.

[Desktop Entry]
Type=Application
Terminal=false
Encoding=UTF-8
Version=1.1
Name=Eclipse IDE for Java Developers - 2021-09
Exec=env GTK_IM_MODULE=ibus /home/richard/eclipse/java-2021-09/eclipse/eclipse
Categories=Development;IDE;
Icon=/home/richard/eclipse/java-2021-09/eclipse/icon.xpm

Save the file and close.

Then run the following commands to make it executable.

chmod +x ~/Desktop/eclipse.desktop

Replace the highlighted username (Richard) with your own account name. He too Exec = location and icon.xpm it should depend on where Eclipse was installed on your system.

Save the file and close.

If that doesn’t work, right-click on the desktop icon and select Allow launch.

That will allow you to start Eclipse from your desktop.

You should do that!

Conclusion:

In this tutorial we have seen how to install Eclipse on Ubuntu Linux. If you find any errors above or have something to add, use the comment form below.

Exit mobile version