How to Install Oracle Java 14 in Ubuntu 18.04, 20.04

March 29, 2020 — 1 Comment

Oracle Java 14 was released more than a week ago. For those want to install it in Ubuntu 16.04, Ubuntu 18.04, Ubuntu 19.10, Ubuntu 20.04, Linux Mint 18.x, 19.x, and their derivatives, an installer script is available in PPA.

For new features and other changes in Java 14, see the announcement.

An Webupd8 team based installer script has been made into the “Linux Uprising” team ppa, which automatically downloads and installs Oracle JDK 14, and sets Java 14 as the default Java version (setting JAVA_HOME, etc.) on 64-bit Ubuntu based machine.

1.) Open terminal either by pressing Ctrl+Alt+T on keyboard or by searching for ‘terminal’ from application menu. When it opens, run commands to add the PPA:

sudo add-apt-repository ppa:linuxuprising/java

Type your user password (no asterisk feedback) for sudo prompt and hit Enter to continue.

2.) Then check updates and install the script via 2 commands:

sudo apt-get update

sudo apt-get install oracle-java14-installer oracle-java14-set-default

Skip / remove oracle-java14-set-default in the command if you don’t want to set Oracle Java 14 as default.

3.) Check the result via command: java --version

(Optional) You can remove the PPA repository via Software & Updates utility under Other Software tab.

And remove Java 14 if you want via command:

sudo apt-get remove oracle-java14-installer

I'm a freelance blogger who started using Ubuntu in 2007 and wish to share my experiences and some useful tips with Ubuntu beginners and lovers. Please notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected]

One response to How to Install Oracle Java 14 in Ubuntu 18.04, 20.04

  1. Works to the dot.
    Thank you

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*