How to Install Latest Java 14 in Ubuntu 18.04, 20.04, Linux Mint

1 min


Oracle Java 14 is released. And here’s how you can download and install in Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, 19.10 and Linux Mint 18.x, 19.x.

Oracle announced the release of the latest Java 14 for developers and enterprises.

Installing the latest Java 14 is not straight forward without adding PPA. There are certain alternatives as well, such as OpenJDK; but they do not work sometimes for Java dependent application programs. Hence Oracle Java is required.

Linux Uprising” Team created an automated script to install Java directly via PPA for 64-bit systems and make the latest Java as default by setting up environment variables such as JAVA_HOME.

How to Install Latest Java 14 in Ubuntu

  • Open terminal (CTRL+ALT+T).
  • Add the “Linux Uprising” PPA via the below command.
sudo add-apt-repository ppa:linuxuprising/java
  • Then run below commands.
sudo apt-get update
sudo apt-get install oracle-java14-installer oracle-java14-set-default
  • This command will directly download the latest Java 14 from the Oracle website. Wait till the download is complete.
  • Once the download is complete, type below to confirm the Java version.
java --version
Java 14 is installed
Java 14 is installed

You should see Java 14 in the prompt. You can also check out the Java executable path via below command:

which java
  • JAVA_HOME variable also can be checked via below command.

To remove:

You can remove the PPA from Software and Updater, then you can remove the above-installed packages.

Software and Updates - PPA
Software and Updates – PPA
sudo apt-get remove oracle-java14-installer


We bring the latest tech, software news and stuff that matters. Stay in touch via Telegram, Twitter, YouTube, and Facebook and never miss an update!

Join our Telegram channel and stay informed on the move.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.


Arindam

Creator of debugpoint.com. All time Linux user and open-source supporter. Connect with me via Telegram, Twitter, LinkedIn, or send us an email.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x