Install Oracle Java 14 on Ubuntu 20.04

Announcement that:

Oracle is proud to announce the general availability of Java 14, which is the fifth version features six-month plan. More than two years of this level of predictability, enabling developers to continue to achieve the desired change, making it easier to manage their adoption of innovation.

Oracle is now available for all developers and enterprises the Java 14 . According to Oracle critical patch update (CPU) schedule , Oracle JDK 14 will receive updates at least two quarters before posting Oracle JDK15. Java15 will be generally available in September 2020, but has already provided early access version .

Mounting

To install the Oracle Java, you must completely remove the open source OpenJDK, do this, you need the following command in the terminal.

Please use the following command to remove OpenJDK.

Clean up unwanted package

Add PPA linuxuprising / java.

Install Oracle Java 14 on Ubuntu 20.04

Update the package list.

Install java

Install Oracle Java 14 on Ubuntu 20.04

Install Oracle Java 14 on Ubuntu 20.04

In the Oracle Java installation process you will see the license terms.

Install Oracle Java 14 on Ubuntu 20.04

Install Oracle Java 14 on Ubuntu 20.04

Depending on your network status and start downloading jdk-14_linux-x64_bin.tar.gz package file, it may take some time.

Version detection:

Install Oracle Java 14 on Ubuntu 20.04

If you have multiple versions of Java, Oracle JDK14 you want to set as the default, run the following command:

  Path selection priority state
--------------------------------------------- ---------------
  0 / usr / lib / JVM / Java-Oracle-14 / bin / Java auto mode 1091
  1 / usr / lib / jvm / java-13-oracle / bin / java 1091 manual mode
* 2 / usr / lib / jvm / java-14-oracle / bin / java 1091 manual mode

To maintain the current value of [*] press <Enter key>, or type selection number:

Install Oracle Java 14 on Ubuntu 20.04

OK, so now installed Java 14.

Related:

Guess you like

Origin www.linuxidc.com/Linux/2020-03/162717.htm