Then move the extracted file to the /opt/ directory as shown. # Linux 64-bit #Įxtract the downloaded tarball. Since the OpenJDK versions available in the default repositories are not up to date, we will have to download the Open-source JDK 17 using the wget command.
Java OpenJDK 17 is an open-source implementation of the Java SE platform.
sudo apt updateįor JRE run the following commands to install sudo apt install openjdk-17-jreĬheck Java version to validate a successful installation: $ java -version The easiest and quickest way is installation OpenJDK 17 on Ubuntu 22.04|20.04|18.04 from OS upstream repositories.
Welcome to this guide on how to install Java 17 (OpenJDK 17) on Ubuntu 22.04|20.04|18.04.