7.1 C
Wednesday, January 27, 2021

How to install Oracle Java 15 on Ubuntu 20.04 / 18.04?

Must read

Please Donate

Senior Writer and partner

Hello, friends. We know that Java is one of the most popular programming languages and now it’s version 15. So in this post, you’ll learn how to install Oracle Java 15 on Ubuntu 20.04 / 18.04

Java is one of the preferred languages by many developers but it is also necessary to run other very important software. In this sense, Oracle from time to time releases a new version that includes good news.

So, if you are a developer and want to try Java 15 on Ubuntu, this post will help you with that.

Install Oracle Java 15 on Ubuntu

The easiest way to install Oracle Java on Ubuntu is by using the PPA of the Linuxuprising people.

In a very brief way, the package is an installer that takes care of downloading the Oracle binaries. Also, it extracts them and copies them in the appropriate directory and everything by us.

So, it opens a terminal or an SSH session.

Once the terminal is started, it updates the whole system:

sudo apt update
sudo apt upgrade

This way we will have the system ready with the security patches to start the installation.

Now, add the PPA repository:

sudo add-apt-repository ppa:linuxuprising/java
Oracle Java 11 (LTS), 14 and 15 installer for Ubuntu (20.10, 20.04, 19.10, 18.04, 16.04 and 14.04), Linux Mint and Debian.
Java binaries are not hosted in this PPA due to licensing. The packages in this PPA download and install Oracle Java, so a working Internet connection is required.
The packages in this PPA are based on the WebUpd8 Oracle Java PPA packages: https://launchpad.net/~webupd8team/+archive/ubuntu/java
Created for users of https://www.linuxuprising.com/
Installation instructions (with some tips), feedback, suggestions, bug reports etc.:
Oracle Java 11: https://www.linuxuprising.com/2019/06/new-oracle-java-11-installer-for-ubuntu.html
Oracle Java 14: https://www.linuxuprising.com/2020/03/how-to-install-oracle-java-14-jdk14-on.html
Oracle Java 15: https://www.linuxuprising.com/2020/09/how-to-install-oracle-java-15-on-ubuntu.html
Important notice regarding Oracle Java 11 and newer: the Oracle JDK license has changed starting April 16, 2019. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available. A FAQ is available here: https://www.oracle.com/technetwork/java/javase/overview/oracle-jdk-faqs.html . After this change, new Oracle Java 11 releases (11.0.3 and newer) require signing in using an Oracle account to download the binaries. This PPA has a new installer that requires the user to download the Oracle JDK 11 .tar.gz and place it in a folder, and only then install the "oracle-java11-installer-local" package. Details here: https://www.linuxuprising.com/2019/06/new-oracle-java-11-installer-for-ubuntu.html
About Oracle Java 10, 12 and 13: These versions have reached the end of public updates, therefore they are longer available for download. The Oracle Java 10/12/13 packages in this PPA no longer worked due to this, so I have removed them. Switch to Oracle Java 11 or OpenJDK 11 instead, which is long term support, or the latest Java 15.
More info: https://launchpad.net/~linuxuprising/+archive/ubuntu/java
Press [ENTER] to continue or Ctrl-c to cancel adding it.
1.- Add the PPA to install Oracle Java 15
1.- Add the PPA to install Oracle Java 15

It then updates the repositories using APT:

sudo apt update

So, now you can start the installation of Oracle Java 15 on Ubuntu, to do this run:

sudo apt install oracle-java15-installer
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu gsfonts gsfonts-x11 java-common libbinutils libctf-nobfd0 libctf0 libfontenc1 oracle-java15-set-default x11-common
xfonts-encodings xfonts-utils
Suggested packages:
binutils-doc binfmt-support visualvm ttf-baekmuk | ttf-unfonts | ttf-unfonts-core ttf-kochi-gothic | ttf-sazanami-gothic ttf-kochi-mincho | ttf-sazanami-mincho
ttf-arphic-uming firefox | firefox-2 | iceweasel | mozilla-firefox | iceape-browser | mozilla-browser | epiphany-gecko | epiphany-webkit | epiphany-browser | galeon
| midbrowser | moblin-web-browser | xulrunner | xulrunner-1.9 | konqueror | chromium-browser | midori | google-chrome
The following NEW packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu gsfonts gsfonts-x11 java-common libbinutils libctf-nobfd0 libctf0 libfontenc1 oracle-java15-installer
oracle-java15-set-default x11-common xfonts-encodings xfonts-utils
0 upgraded, 15 newly installed, 0 to remove and 122 not upgraded.
Need to get 6262 kB of archives.
After this operation, 20.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]

During the installation, you will see a screen where you will have to accept the license terms. After accept them, the installation will continue.

2.- Accept ther license terms
2.- Accept ther license terms

To make Java 15 the default version, install this package:

sudo apt install oracle-java15-set-default

Then, verify the installation with the following command:

java --version
java 15 2020-09-15
Java(TM) SE Runtime Environment (build 15+36-1562)
Java HotSpot(TM) 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)

So, Java 15 is installed and ready to use.


Java 15 has been released with many new features and this makes many want to leap an old version to this one. Therefore, in this post, you could learn how to install it in Ubuntu.

So, share this post with your friends and join our Telegram channel

More articles


Please enter your comment!
Please enter your name here



Latest article