
So, this is how you install JRE and JDK from OpenJDK. You should see an output similar to the one shown below: Checking Java version To verify that JDK has been appropriately configured, you can check the version of the Java compiler on your system using this command: $ javac -version This time, you should see an output similar to one shown in the below image: Java installed

To make sure that Java is correctly installed on your system, enter the same command as before: $ java -version With both JDK and JRE installed, you will be able to run all Java-based software on your Pop!_OS system. To install the default JDK – Java Development Kit from OpenJDK 11, you will need to enter another command: $ sudo apt install default-jdk This command will only install the default JRE – Java Runtime Environment from OpenJDK 11. To install Java on your system, you can type in the following command: $ sudo apt install default-jre

However, in case it is not installed, you will get the following message on screen: Java not installed If Java is installed, it will show you the version number of the JRE. Next, enter this command to check if Java is installed on your system.
