Ubuntu Ubuntu Tutorials

Install JDK 10 In Ubuntu Or Linux Mint From PPA Repository

Install JDK 10 In Ubuntu Or Linux Mint From PPA Repository

Insight: Install JDK 10 In Ubuntu Or Linux Mint From PPA Repository 

In this article, we are going to show you the method to install JDK 10 in Ubuntu and Linux Mint operating system. Let’s jump into the process to install Java development kit in Ubuntu/Linux Mint.

Install JDK 10 In Ubuntu Or Linux Mint From PPA Repository

Install JDK 10 In Ubuntu/Linux Mint From PPA Repository

Install JDK via PPA

This is one the easiest way to install JDK in Ubuntu. Open your terminal and run the following commands to add PPA:

 sudo add-apt-repository ppa:linuxuprising/java

Now, Install JDK:

sudo apt update
sudo apt install oracle-java10-installer

In Ubuntu, Oracle Java 10 is automatically set as default. Meanwhile, In Linux Mint, We can make JDK 10 as default by installing the oracle-java10-set-default package. Open your terminal and run the following command:

sudo apt install oracle-java10-set-default

Automatically accept the Oracle Java 10 license.

If you want to automate the Oracle Java 10 installation process, and wants to skip the license agreement procedure then run the following command to automatically accept the license:

echo oracle-java10-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections

If something goes wrong and doesn’t automatically accepts the Oracle Java 10 license, try the command below in your terminal:

echo oracle-java10-installer shared/accepted-oracle-licence-v1-1 boolean true | sudo /usr/bin/debconf-set-selections

At last, you can check version of  Java installed in your system running following command.

javac -version

 



READ THIS ALSO  How To Install GIMP Using Flatpak In Ubuntu 18.04

Subscribe To Our Newsletter.

Join our mailing list to receive the latest linux tutorials, tips & tricks, freebies,news and updates from our team.

You have Successfully Subscribed!