How to Install Oracle Java 14 on Ubuntu Linux

How to Install Oracle Java 14 on Ubuntu Linux

Recently, Oracle announced the public availability of Java 14 (or Oracle JDK 14). If you want to experiment or develop with the latest, then you can try installing Java 14 on your Linux system.

The Oracle JDK 14 (or Java 14 for short) release includes several new features if you want to preview them. I have added the link:

  • Pattern matching with instanceof
  • Records
  • Text Blocks

Besides the preview feature, it also contains several improvements and additions. In the news, they also mentioned other improvements:

In addition, the latest Java version adds support for switch expressions in the Java language, adds a new API for continuous monitoring of JDK Flight Recorder data, extends low-latency zgc to macOS and Windows, and adds incubator modules, independent Java application packaging, and a new external memory access API for safe and efficient access to memory outside the Java heap.

Of course, if you want to get into the details, then you should check out the official announcement.

In this tutorial, I will show you an easy way to install Java 14 on your Ubuntu system. Please continue reading.

Note: If you choose to use Oracle Java 11 or later, you should be aware of the new Oracle Technology Network License Agreement to understand how it affects individual users, developers, and commercial organizations. Generally, they are free for development and testing, but not for production use.

How to install Java 14 on Ubuntu Linux?

For reference, I have successfully installed it on Pop!_OS 19.10 which has OpenJDK 11 installed by default.

Here, we will use Linux Uprising's Java 14 installer (originally based on the WebUpd8 Java package).

Simply enter the following command in your terminal to install it:

sudo add-apt-repository ppa:linuxuprising/java
sudo apt update
sudo apt install oracle-java14-installer

That should do it, if you want to make it the default then you can type the following command:

sudo apt install oracle-java14-set-default

It's worth noting that this only works on Ubuntu-based distributions. If you want to install it on Debian and other Linux distributions, you can also follow the detailed guide from Linux Uprising to install Java 14.

Summarize

Of course, these will bring the latest features, and if you don’t want to disrupt your existing environment, you may want to continue using Java 11. If you want to experiment but understand the risks, go ahead!

This is the end of this article about how to install Oracle Java 14 on Ubuntu Linux. For more information about installing Oracle Java 14 on Ubuntu Linux, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed steps for Azure to mount a data disk to a Ubuntu virtual machine
  • Detailed explanation of deploying Asp.NET Core Web App on Azure
  • How to reset Linux password on Windows Azure platform
  • How to solve the problem of SQL Server network access failure when deployed on Azure
  • Implementing Single Sign-On Using AzureAD in ASP.NET 5
  • Java remotely connects to Linux server and executes commands and uploads files
  • Detailed explanation of deploying JAVA projects with JAR packages on LINUX
  • Java enables Azure Linux virtual machine diagnostic settings

<<:  MySQL date processing function example analysis

>>:  Native javascript+CSS to achieve the effect of carousel

Recommend

How to enable the slow query log function in MySQL

The MySQL slow query log is very useful for track...

How to install OpenSuse on virtualbox

The virtual machine is installed on the host mach...

HTML page adaptive width table

In the pages of WEB applications, tables are ofte...

Vue implements a simple marquee effect

This article shares the specific code of Vue to a...

XHTML 2.0 New Features Preview

<br />Before browsers can handle the next ge...

MySQL full-text search usage examples

Table of contents 1. Environmental Preparation 2....

Docker's flexible implementation of building a PHP environment

Use Docker to build a flexible online PHP environ...

Solve the cross-domain problem of get and post requests of vue $http

Vue $http get and post request cross-domain probl...

HTML basics HTML structure

What is an HTML file? HTML stands for Hyper Text M...

Linux system file sharing samba configuration tutorial

Table of contents Uninstall and install samba Cre...

JS realizes video barrage effect

Use ES6 modular development and observer mode to ...

Example of downloading files with vue+django

Table of contents 1. Overview 2. Django Project 3...

Vue implements login jump

This article example shares the specific code of ...