Software Installation on Ubuntu 20.04 by command line terminal | JRE/JDK 11.0 | ECLIPSE
The easiest option for installing Java is to use the version packaged with Ubuntu. By default, Ubuntu 20.04 includes Open JDK 11, which is an open-source variant of the JRE and JDK.
To install this version, first update the package index:
sudo apt update
Next, check if Java is already installed:
java -version
Execute the following command to install the default Java Runtime Environment (JRE), which will install the JRE from OpenJDK 11:
sudo apt install default-jre
The JRE will allow you to run almost all Java software.
Verify the installation with:
java -version
You may need the Java Development Kit (JDK) in addition to the JRE in order to compile and run some specific Java-based software. To install the JDK, execute the following command, which will also install the JRE:
sudo apt install default-jdk
Verify that the JDK is installed by checking the version of javac, the Java compiler:
javac -version
Let's begin with the Eclipse installation. Open up your terminal and execute the following command:
$ sudo snap install --classic eclipse
#ubuntu20.04 #java11 #eclipseIDE #opensource