We can install Eclipse IDE in Ubuntu 20.04 using the two methods. Let’s see, how to install Eclipse IDE on Ubuntu.
Eclipse is an integrated development environment used in computer programming. This requires Java installed on the machine. It contains a basic workspace and extensible plugins in the system for customizing the environment.
How To Install Eclipse IDE On Ubuntu 20.04 / 19.10
ubuntu@ubuntu:~$ sudo apt install default-jre ubuntu@ubuntu:~$ java -version openjdk version "1.8.0_265" OpenJDK Runtime Environment (build 1.8.0_265-8u265-b01-0ubuntu2~20.04-b01) OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)
Install Eclipse Using Snap:
We can install the eclipse with a snap package with a single command as shown below.
sudo snap install --classic eclipse
Once the installation is finished. you will get the output:
eclipse 2019-12 from Snapcrafters installed
You can check the Eclipse by clicking on “Activities” and search “Eclipse“.
Open the “Eclipse” then it will ask you to set up the workspace directory. you can have a default location or change it and click on “Launch“.
You can start working here.
Install Eclipse Using Official Packages:
We can install eclipse using the official package on ubuntu. This is a little different from the above method. Use the below command to extract the package. Download the package as well.
wget http://mirror.umd.edu/eclipse/technology/epp/downloads/release/2020-06/R/eclipse-java-2020-06-R-linux-gtk-x86_64.tar.gz sudo tar -zxvf eclipse-java-2020-06-R-linux-gtk-x86_64.tar.gz -C /usr/
Create a symbolic link using the below command so that other users can also use this.
sudo ln -s /usr/eclipse/eclipse /usr/bin/eclipse
We need to create an Eclipse Launcher Icon and use the below command.
ubuntu@ubuntu:~$ sudo vim /usr/share/applications/eclipse.desktop
Put these codes in the file and save it.
[Desktop Entry] Encoding=UTF-8 Name=Eclipse IDE Comment=Eclipse IDE Exec=/usr/bin/eclipse Icon=/usr/eclipse/icon.xpm Terminal=false Type=Application StartupNotify=false
Now run the “eclipse” from the terminal or you can check the Icon on “Activities” and search for “Eclipse“.
In a similar way, you can get Eclipse on another ubuntu distro like 18.04, etc.