在Debian 12上安装OpenJDK 17(Azul Zulu Builds of OpenJDK)

首先

使用Azul Zulu Builds的OpenJDK,在Debian12上安装OpenJDK17。
参考来源:Azul平台核心,父文章:OpenJDK的各种安装方法和EOL总结。

支持

只有商业版提供了明确的支持时限。Azul支持路线图 – Azul | 更好的Java性能,卓越的Java支持
自Zulu Community时代以来,免费版的支持时间不明确。

日志

注册存储库

# apt update
# apt install gnupg ca-certificates curl
# curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg
# echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | tee /etc/apt/sources.list.d/zulu.list

安装

# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

# apt update
# apt install zulu17-jdk
... 略

各种确认 (gè

# which java
/usr/bin/java

# java -version
openjdk version "17.0.8" 2023-07-18 LTS
OpenJDK Runtime Environment Zulu17.44+15-CA (build 17.0.8+7-LTS)
OpenJDK 64-Bit Server VM Zulu17.44+15-CA (build 17.0.8+7-LTS, mixed mode, sharing)
广告
将在 10 秒后关闭
bannerAds