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

Add a floating prompt for the header icon in the ElementUI table

This article mainly introduces how to add floatin...

Detailed explanation of the usage and function of MySQL cursor

[Usage and function of mysql cursor] example: The...

Tips for turning pixels into comprehensive brand experiences

Editor: This article discusses the role that inte...

A collection of information about forms and form submission operations in HTML

Here we introduce the knowledge about form elemen...

Script example for starting and stopping spring boot projects in Linux

There are three ways to start a springboot projec...

How to get the height of MySQL innodb B+tree

Preface The reason why MySQL's innodb engine ...

Summary of MySQL composite indexes

Table of contents 1. Background 2. Understanding ...

HTML tag default style arrangement

html, address,blockquote,body, dd, div,dl, dt, fie...

Solution to forgetting mysql password under linux

The problem is as follows: I entered the command ...

Three ways to avoid duplicate insertion of data in MySql

Preface In the case of primary key conflict or un...

Detailed explanation of Nginx timed log cutting

Preface By default, Nginx logs are written to a f...

MySQL 8.0.14 installation and configuration method graphic tutorial (general)

MySQL service 8.0.14 installation (general), for ...

A record of a Linux server intrusion emergency response (summary)

Recently, we received a request for help from a c...

Detailed explanation of the six common constraint types in MySQL

Table of contents Preface 1.notnull 2. unique 3. ...