

The above output may vary depending upon the version you chose it to be the default Java version.The following article covers the steps used to install and set-up JAVA & Grails on an Ubuntu 14.04 Linux VPS. OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode) Verify Java VersionĬheck the Java version using the following command. Press to keep the current choice, or type selection number: 2Įnter the number below selection column to set the default Java version. * 3 /usr/lib/jvm/jdk-14.0.1/bin/java 1 manual mode There are 3 choices for the alternative java (providing /usr/bin/java).Ġ /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto modeġ /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual modeĢ /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode

If your system has multiple Java versions, the above command will list all Java versions like below. Use the update-alternatives command to set the default java version. Then, use the wget command to download Oracle Java using the terminal. If you still want to download through the command line, install the wget package. deb package for the easy installation.ĭownload Oracle Java 11 LTS (v11.0.7) (Login Required)ĭownload Oracle Java 8 (v8u251) (Login Required) Oracle JDK page to download JDK packages using the browser. You can use either the command line or browser to download the JDK. Oracle JDK v9.x and above now includes JRE as well. There is no separate JRE (Java Runtime Environment). Sudo apt install -y openjdk-8-jre-headless Sudo apt install -y openjdk-11-jre-headless Install OpenJDK JRE JRE # Default JRE ie JRE 11 #
