Ubuntu – Install oracle java jdk 12

javajdkoraclesoftware installation

I installed Oracle Java Jdk 12 from here:

https://www.oracle.com/technetwork/java/javase/downloads/jdk12-downloads-5295953.html

But the installation explanation is cryptic to me:

Unpack the tarball and install the JDK: $ tar zxvf
jdk-12.interim.update.patch_linux-x64_bin.tar.gz

The Java Development Kit files are installed in a directory called
jdk-12.interim.update.patch.

But it doesn't tell what command to use to install it.

Best Answer

Go here to get to the download page.

Note the new licensing agreement...

enter image description here

Go to the bottom of the page, find the area shown below, accept the license agreement, click the download link...

enter image description here

Once downloaded, double-click on the .deb file to install it.