Install Java Ubuntu Real Quick!

OpenJDK Developers Guide

Quick guide to download and install OpenJDK 15 on Ubuntu 18.04 / ubuntu 20.04. - OpenJDK Community Version


What is OpenJDK


OpenJDK is the short form of Open Java Development Kit similar to Oracle's Java Development Kit used to develop Java Applications. Main difference between Oracle JDK and OpenJDK is that OpenJDK is free for all while Oracle Java Development Kit or Oracle JDK requires commercial license. For more details refer openjdk vs oracle jdk


If you want to know more about OpenJDK, you can go through Open Java Development Kit Quick guide.


Note: To uninstall previously installed OpenJDK please refer Uninstall openJDK Ubuntu 18.04 / ubuntu 20.04



Step #1: Download


Go to https://jdk.java.net/archive/ and download the OpenJDK 15 tar distribution openjdk-14+36_linux-x64_bin.tar.gz. Here is the quick lik to download the OpenJDK 15 tar file openjdk-14+36_linux-x64_bin.tar.gz




Step #2: Install Ubuntu OpenJDK 15



To Install OpenJDK 15 Java Runtime - Enter the below command on Ubuntu 18.04 / ubuntu 20.04 command line.

$ sudo apt-get install openjdk-15-jre

The openjdk-15-jre package contains just the Java Runtime Environment. If you want to develop Java programs then please install the openjdk-15-jdk package.
To Install OpenJDK 15 Java Development Kit (JDK) - Enter the below command on Ubuntu 18.04 / ubuntu 20.04 command line. It will install jdk ubuntu.

$ sudo apt-get install openjdk-15-jdk



Step #3: Configure / SET JAVA_HOME Path


Once the above steps are successfully completed , we need to set the "JAVA_HOME" and "PATH" environment variables. Enter the following commands to set your environment variables. Make sure that your environment variables point to a valid installation of JDK on your Ubuntu 18.04 / ubuntu 20.04 machine.

export JAVA_HOME=/usr/lib/jvm/openjdk-15-jdk


Add the JAVA bin directory to the PATH variable

export PATH=$PATH:$JAVA_HOME/bin


This will append the java bin directory to the existing PATH variable. You can also check the PATH variable by entering the following command



Step #4: Verify


Once the OpenJDK 15 Download and installation is complete, we can verify the installed OpenJDK 15 version using below Command.



Go to Ubuntu 18.04 / ubuntu 20.04 prompt and type java -version
The above command prints the OpenJDK 15 version you installed. And this will confirm the successfull installation of jdk ubuntu.

Java -version

$ java --version
openjdk 15-ea 2020-**-**
OpenJDK Runtime Environment (build 15-ea+18-Ubuntu-1)
OpenJDK 64-Bit Server VM (build 15-ea+18-Ubuntu-1, mixed mode, sharing)



Congratulations !!! Now you have installed OpenJDK 14 Successfully.


Step #5: OpenJDK Known Issues


Note: Here is the list of OpenJDK known-issues related to OpenJDK 15 jdk installation on ubuntu OpenJDK Known Issues



Here are the ubuntu openjdk packages you might be interested in!


Ubuntu package openjdk-8-jdk
Ubuntu package openjdk-9-jdk
Ubuntu package openjdk-11-jdk
Ubuntu package openjdk-13-jdk
Ubuntu package openjdk-14-jdk
Ubuntu package openjdk-15-jdk


If you are looking out for earlier OpenJDK versions, go to OpenJDK Archive




Read Next :





  1. Install OpenJDK On CentOS
  2. Install OpenJDK 8 on CentOS
  3. Install OpenJDK 7 on CentOS
  4. Install OpenJDK 6 on CentOS




OpenJDK On Windows





x