In this article, we will have explained the necessary steps to install and configure Eclipse IDE on Ubuntu 18.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.
Eclipse is an integrated development environment (IDE) used in computer programming, and its most widely used in Java IDE. Eclipse is a multiplatform application and provides IDEs and platforms for nearly every language and architecture. Eclipse contains a base workspace and an extensible plug-in system for customizing the environment. Eclipse is written mostly in Java and its primary use is for developing Java applications, but it may also be used to develop applications in other programming languages via plug-ins, including Ada, ABAP, C, C++, Clojure, COBOL and many more.
Install Eclipse IDE on Ubuntu
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
sudo apt update sudo apt upgrade
Step 2. Install Java.
Eclipse is a Java-based application and it requires a Java runtime environment (JRE):
sudo apt install default-jre
You can check you java version by running following command:
$ java -version java version "9.0.4" Java(TM) SE Runtime Environment (build 9.0.4+12) Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+12, mixed mode)
Step 3. Install Eclipse.
Follow the below steps in order to install the Eclipse Ubuntu via terminal:
sudo snap install --classic eclipse
On successful installation of Eclipse, you should see the following output:
eclipse 4.8.6 from 'snapcrafters' installed
Step 4. Starting Eclipse.
Now that Eclipse is installed on your Ubuntu system you can start it by clicking on the Eclipse icon (Activities -> Eclipse) or type the following command in the terminal:
That’s all you need to do to install Eclipse on Ubuntu 18.04 Bionic Beaver. I hope you find this quick tip helpful. If you have questions or suggestions, feel free to leave a comment below.