Even though OpenJDK is available in Linux repositories, some applications strictly require Oracle Java Development Kit. This article shows you how to manually install Oracle JDK 11 on your Linux system. This article uses JDK 11$java_update_no to demonstrate the installation. In the provided commands, replace the version specific paths and file names according to your downloaded version.
To install the latest Oracle JDK, please visit Install the latest Oracle JDK on Linux.
Step 1:
Download the latest JDK(jdk-11$java_update_no_linux-x64_bin.tar.gz) from the official site.
If you want to download to a remote server or if you simply prefer wget, use the command given in this StackOverflow answer: Downloading JDK
If you want to download to a remote server or if you simply prefer wget, use the command given in this StackOverflow answer: Downloading JDK