


If we want to add the linuxuprising / java PPA in Ubuntu 19.04, in a terminal (Ctrl + Alt + T) we will only have to execute the command: This version of JDK is not available in the official Ubuntu package repository, but we can use the linuxuprising / java PPA to install it. In Ubuntu 19.04 we will also be able to install Oracle JDK 12.

Java -version Installing Oracle JDK 12 Using PPA If you are more interested in install headless system version of OpenJDK 12, the command to execute is the following:Īfter the installation of OpenJDK 12, we can execute the following command to check if OpenJDK is working properly: If you are interested install the full version of OpenJDK 12, run the following command in the terminal (Ctrl + Alt + T): This latest version does not have GUI programming libraries included and requires less disk space. A Complete version and a version of headless system. First we will have to update the cache of the APT package repository with the following command: sudo apt update Therefore, we will be able to install it easily with the APT package manager. We will be able to find OpenJDK 12 available in the official Ubuntu 19.04 package repository. Install Java 8, 9 and 10 on Ubuntu 18.04 and derivatives OpenJDK 12 installation
