how to install openjdk17 ubuntu server 1

how to install openjdk17 ubuntu server

wget https://download.java.net/java/GA/jdk17/0d483333a00540d886896bac774ff48b/35/GPL/openjdk-17_linux-x64_bin.tar.gz

Here is what the above code is Doing:
1. We’re using the wget command to download the OpenJDK 17 binary from the official website.
2. We’re using the tar command to extract the downloaded file.
3. We’re using the mv command to move the extracted folder to the /usr/lib/jvm directory.
4. We’re using the update-alternatives command to set the default Java version to OpenJDK 17.

Similar Posts