Home  >  Article  >  Java  >  How to install Oracle Java 14 on Ubuntu Linux

How to install Oracle Java 14 on Ubuntu Linux

WBOY
WBOYforward
2023-05-11 11:40:131328browse

NOTE: If you choose to use Oracle Java 11 or later, you should learn about the new Oracle Technology Network License Agreement to understand how it affects individual users, developers, and commercial organizations. Typically, they are free for development and testing, but not for production environments.

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 set it as 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 then you can also follow the detailed guide at linux uprising to install java 14.

The above is the detailed content of How to install Oracle Java 14 on Ubuntu Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete