Recently, Oracle announced that Java 14 (or Oracle JDK 14) is publicly available. If you want to carry out the latest experiment or development, then you can try to install Java 14 on the Linux system.
The release of Oracle JDK 14 (or Java 14 for short) contains several new features, if you want to preview them. I have added the link:
In addition to the preview function, it also contains some improvements and additions. In the news, they also mentioned other improvements:
In addition, the latest Java version adds Java language support for switch expressions, adds a new API for continuous monitoring of JDK Flight Recorder data, and extends the low-latency zgc to macOS and Windows, and adds it to the incubator module, independent Java application packaging and a new external memory access API for safe and effective access to the external memory of the Java heap.
Of course, if you want to learn more about the details, then you should check the official announcement.
In this tutorial, I will show you an easy way to install Java 14 on an Ubuntu system. Please keep reading.
Note: If you choose to use Oracle Java 11 or later, you should understand the new Oracle Technology Network License Agreement to understand how it affects individual users, developers, and commercial organizations. Generally, they can be used for development and testing free of charge, but cannot be used in a production environment.
**How to install Java 14 on Ubuntu Linux? **
For reference, I have successfully installed it on Pop!_OS 19.10 with OpenJDK 11 installed by default.
Here, we will use Linux Uprising's Java 14 installer (originally based on the WebUpd8 Java package).
Just enter the following command in the terminal to install:
sudo add-apt-repository ppa:linuxuprising/java
sudo apt update
sudo apt install oracle-java14-installer
This should be done, if you want to make it the default, then you can enter the following command:
sudo apt install oracle-java14-set-default
It is worth noting that this only applies to Ubuntu-based distributions. If you want to install it on Debian and other Linux distributions, you can also install Java 14 following the detailed guide in Linux Uprising.
to sum up
Of course, these will bring the latest features, if you do not want to break the original environment, you may want to continue to use Java 11. If you want to experiment with the risks, please keep trying!
This is the end of this article on the method of installing Oracle Java 14 on Ubuntu Linux. For more information about installing Oracle Java 14 on Ubuntu Linux, please search for previous articles by ZaLou.Cn or continue to browse the related articles below. Hope everyone Support ZaLou.Cn a lot in the future!
Recommended Posts