Linux
February 6, 2023

Установка Java 17 на CentOS

копируем jdk-17.0.5_linux-x64_bin.tar.gz в /home/tmp/jdk17/

tar xvf jdk-17.0.5_linux-x64_bin.tar.gz

sudo mv jdk-17.0.5 /opt/

sudo alternatives --install /usr/bin/java java /opt/jdk-17.0.5/bin/java 99

sudo alternatives --install /usr/bin/javac java /opt/jdk-17.0.5/bin/javac 99

sudo update-alternatives --config java

java -version

Взято отсюда:
https://www.ovhcloud.com/asia/community/tutorials/how-to-install-java-centos/