
The above command installs Oracle Java 17 on your system. Once you download the Debian file, install it on your system using command below: sudo apt install. Check for the current version and download it to your system. If the above command does not work or you found a file not found error, please go to the official download page. Also, you can use the below command to download the Debian file using the command line. You can visit official download page to download Debian file on your system. So we prefer to install Java 17 on Ubuntu systems. Java 18 is a non-LTS version and Java 17 is an LTS version. OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1, mixed mode, sharing)Īs of today, Oracle Java 18 and Java 17 are available to download and install without getting a commercial license. Once the installation is complete, you can verify it by checking the Java version with the below command. You can also install OpenJDK 18 (openjdk-18-jdk) package, but that is a non-LTS release. Install OpenJDK 17 sudo apt install openjdk-17-jdk.Install OpenJDK 8 sudo apt install openjdk-8-jdk.


This guide will help you to install Java (OpenJDK 17, 11, and 8) LTS releases.

OpenJDK is an open-source implementation of Java available freely for production use.
