How to install Java JDK on Linux Mint 18 and Ubuntu with easy terminal commands

Video is ready, Click Here to View ×

Terminal commands to install Java 8 JDK 1.8.0_101 or new updates for Java 8

Link for my blog page:

copy and paste these commands

sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java8-installer

To check Java version

java -version

Web-site link where I found these commands



  1. Supposedly, Linux Mint has open JDK installed out of the box. I think that this means Linux Mint has java installed out of the box but I'm not sure. Yeah I just checked my java version using your command and it's already there (1.8.0_91).

Leave a Reply

Your email address will not be published.