How to install Java

Downloading and Installing Java from OpenJDK if you want to download OpenJDK manually, download it from https://jdk.java.net/ But you can download JDK programmatically as the following. Java SE 7, 8, 9, 10, 11, 12, 13 are included below script. So, run below script in your terminal. Check Java Version