Skip to content

3.5.6 Java 17

Tomato6966 edited this page Apr 18, 2022 · 3 revisions

Install Java 17

wget https://download.java.net/openjdk/jdk17/ri/openjdk-17+35_linux-x64_bin.tar.gz
sudo mkdir -p /usr/lib/jvm
sudo tar zxvf openjdk-17+35_linux-x64_bin.tar.gz -C /usr/lib/jvm
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-17/bin/java" 1
sudo update-alternatives --set java /usr/lib/jvm/jdk-17/bin/java
java -version

Versions and Download Links Click here to see all available versions

OPTIONAL TO SWAP THE VERSION:

sudo update-alternatives --config java
Clone this wiki locally