Eclipse comes with plugins to extend its functionality to support programming languages such as PHP, JavaScript, C++, and more. If you want a simple-to-use IDE platform to build your next application, then you might want to take a look at Eclipse. Eclipse packages are available in Ubuntu default repositories. However, the version available in the default repositories are outdated. Below we’ll show you how to get the latest version installed easily. 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 about Eclipse, check its 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’ll need a Java runtime environment (JRE) to be installed to run it. You’ll need to install the OpenJDK package with JRE. If you haven’t installed OpenJDK, use the link below. How to install OpenJDK on Ubuntu After installing OpenJDK above, run the commands below to install JRE. The commands above will update the Ubuntu package index and install OpenJDK and JRE packages to support Eclipse.
How to install Eclipse from Snap
After installing Java JRE above, run the commands below to install Eclipse from Snap. Snaps are containerized software packages that are simple to create and install. Snap applications are packaged with all their dependencies to run on all popular Linux distributions from a single build which allow them to update automatically and roll back gracefully. The commands above will install the latest version of Eclipse from Snap. When you run the commands above, after a successful installation, you should get a similar message as the one below. Once the installation is done, you can start it by typing eclipse in your terminal or by clicking on the Netbeans icon from 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 an installer you can use to install it on Ubuntu Linux. First, go to the link below to download the installer. At the time of this post, the current version is 2021-09. Download Eclipse Installer When you click on the Download link to download the installer, it will ask what to do with the file. Choose the save option. By default, when you download via Firefox, it automatically saves in your Downloads folder. Once the file is downloaded and saved in your Downloads folder, run the commands below to extract it. After extracting the file, run the commands below to launch the installation wizard. The installer will help you install the version Choose the package you want to install. Usually the package for the language you will be building your programs. On the next screen, choose the version of OpenJDK installed using the drop-down option. The install installation folder can remain the default. After a brief moment, the installation should be complete and Eclipse ready to be used. Click the Launch button to open Eclipse. If you installed it via the manual option, you may need to create a desktop icon to launch the program. You can run the commands below to create a simple desktop icon for Eclipse. Next, copy and paste the content below into the file and save Save the file and exit. Then run the commands below to make it executable. Replace the highlighted username (richard) with your account name. also, the Exec = location and icon.xpm should depend on where Eclipse got installed on your system. Save the file and exit. If that doesn’t work, right-click the icon on the Desktop and select Allow Launching. That will allow you to launch Eclipse from your desktop. That should do it! Conclusion: This post showed you how to install Eclipse on Ubuntu Linux. If you find any error above or have something to add, please use the comment form below.