Java installation

Install Java. A type of Java called Open JDK. Install JRE, which is the execution environment, and JDK, which is the development toolkit.

sudo apt install -y default-jre

Installing the JRE will also install the JDK.

Installation is OK if the Java version is displayed.

java -version

Associated Information