Quick guide to download and install OpenJDK 11 on Debian. - OpenJDK Community Version
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
Note: To uninstall previously installed OpenJDK please refer Uninstall OpenJDK Debian / Ubuntu
If you want to know more about OpenJDK, you can go through Open Java Development Kit Quick guide.
Go to https://download.java.net/openjdk/ and download the OpenJDK 11 Debian tar distribution openjdk-11+28_linux-x64_bin.tar.gz. Here is the quick lik to download the OpenJDK 11 Debian tar file openjdk-11+28_linux-x64_bin.tar.gz
To Install OpenJDK 11 Debian Java Runtime - Enter the below command on Debian command line.
$ sudo apt-get install openjdk-11-jre
$ sudo apt-get install openjdk-11-jdk
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 Debianmachine.
Once the OpenJDK 11 Debian Download and installation is complete, we can verify the installed OpenJDK 11 Debian version using below Command.
Go to Debian prompt and type java -version
The above command prints the OpenJDK 11 Debian version you installed.
$ java -version java version "11" 2020-**-** Java(TM) SE Runtime Environment (build 11+36-1461) Java HotSpot(TM) 64-Bit Server VM (build 11+36-1461, mixed mode, sharing)
Note: Here is the list of OpenJDK known-issues OpenJDK Known Issues