Automic VaultAutomic Vault

brew

使用 Homebrew, apt, apk, chocolatey, MacPorts, Nix, winget 安装 openjdk@17

查看 openjdk@17 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install openjdk@17

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install openjdk17

MacPorts ports tree · java/openjdk17/Portfile · 来源: api.github.com

Windows

Chocolatey已验证 · 92%
choco install openjdk17

Chocolatey community package catalog · openjdk17 · 来源: community.chocolatey.org

Windows Package Manager已验证 · 92%
winget install --id Microsoft.OpenJDK.17 -e

Windows Package Manager source index · Microsoft.OpenJDK.17 · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Development kit for the Java programming language

命令和别名

本地软件包数据库中没有找到可执行别名。

历史

项目历史与用法

OpenJDK 17 is the open-source reference implementation of Java SE 17. It reached General Availability on 14 September 2021 and became one of the major post-Java-11 long-term-support baselines for Java developers, vendors, build systems, CI images, and Linux/macOS package managers.

项目历史

JDK 17 was produced through the OpenJDK JDK Project, whose long-running goal is to ship open-source reference implementations of the Java SE Platform on a strict six-month feature-release cadence. The release was specified by JSR 390, tracked through the JEP process, and delivered using the JDK Release Process.

The release closed a four-year gap from the previous LTS line, JDK 11, and accumulated language, VM, library, and platform work that had been previewed or incubated across intervening releases. Its feature list includes sealed classes, strong encapsulation of JDK internals, a macOS/AArch64 port, a new macOS rendering pipeline, context-specific deserialization filters, and incubating Foreign Function & Memory and Vector APIs.

采用历史

The OpenJDK release page identifies JDK 17 as a long-term-support release from most vendors. That status made it a practical migration target for organizations that skipped non-LTS releases after Java 11, and it explains why package managers keep versioned formulae such as openjdk@17 beside newer JDK lines.

JDK 17 also mattered because it tightened boundaries around unsupported internal APIs. Strong encapsulation of JDK internals moved many applications and libraries from permissive legacy access toward explicit supported APIs or deliberate command-line opens, making the release a compatibility checkpoint for the Java ecosystem.

使用方式

Developers use the package as a full JDK rather than only a runtime: it provides java, javac, jar, javadoc, jshell, jlink, jpackage, Java Flight Recorder tooling, and diagnostic tools such as jcmd, jmap, jstack, and jstat. In practice it is installed to compile Java code, run application servers and build tools, create custom runtime images, inspect production JVMs, and match an LTS target in CI.

For package consumers, openjdk@17 is valuable because it pins the toolchain to a stable Java language and class-library level. That matters for Gradle/Maven builds, language-server setups, container images, and projects whose dependencies certify against Java 17 rather than a moving latest-JDK target.

为什么软件包爱好者会关心

OpenJDK 17 is a package-manager anchor: it is old enough to be a compatibility baseline and new enough to include the post-Java-9 module-era JDK shape. Its formula preserves a vendor-neutral GPL-with-Classpath-exception build of the Java toolchain while newer OpenJDK formulae continue to advance.

The package is also a reminder that language runtimes often need versioned slots. A single unversioned JDK package cannot serve every build, because bytecode targets, compiler behavior, preview/incubator APIs, security updates, and vendor LTS windows all affect reproducible builds.

时间线

  • 14 September 2021: JDK 17 reached General Availability as the Java SE 17 reference implementation.
  • JDK 17 feature cycle: sealed classes were finalized after preview in JDK 15 and JDK 16; strong encapsulation of internals and macOS/AArch64 support landed as part of the same release train.
  • After GA: update work moved to the jdk17u line, while the OpenJDK JDK Project continued six-month feature releases.

Related projects

  • OpenJDK 17 sits between the JDK 11 and JDK 21 LTS generations. It is maintained through the JDK Updates effort, while experimental and longer-horizon work around Panama, Valhalla, Loom, Amber, and other OpenJDK projects feeds later feature releases.

安全态势

尚未找到受保护工具覆盖

没有找到 openjdk@17 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 6 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
没有可执行文件数据。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本17.0.19
管理器更新时间2026-06-25
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/openjdk/jdk17u

安装元数据

软件包元数据

软件包键brew:openjdk@17
版本17.0.19
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/openjdk@17
主页https://openjdk.org/
仓库https://github.com/openjdk/jdk17u
上游文档https://docs.oracle.com/en/java/javase/17
许可证GPL-2.0-only WITH Classpath-exception-2.0
源码归档https://github.com/openjdk/jdk17u/archive/refs/tags/jdk-17.0.19-ga.tar.gz
最后更新2026-06-25T13:37:59+02:00
Pulseupdated
依赖freetype, giflib, harfbuzz, jpeg-turbo, libpng, little-cms2
构建依赖autoconf, pkgconf
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项For the system Java wrappers to find this JDK, symlink it with sudo ln -sfn $HOMEBREW_PREFIX/opt/openjdk@17/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-17.jdk

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameopenjdk@17
Version Scheme0
Revision0
Requirements
  • xcode
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Ubuntu apt95%

openjdk-17-dbg 17.0.11+9-1

Java runtime based on OpenJDK (debugging symbols)

https://openjdk.java.net/

sudo apt install openjdk-17-dbg
  • Section: debug
  • Architecture: amd64
  • Source Package: openjdk-17
  • 1 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Openjdk 17
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: openjdk-17-dbg from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

openjdk-17-demo 17.0.11+9-1

Java runtime based on OpenJDK (demos and examples)

https://openjdk.java.net/

sudo apt install openjdk-17-demo
  • Section: universe/java
  • Architecture: amd64
  • Source Package: openjdk-17
  • 1 依赖
  • normalized package name match
  • 匹配方式:Openjdk 17
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: openjdk-17-demo from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

openjdk-17-doc 17.0.11+9-1

OpenJDK Development Kit (JDK) documentation

https://openjdk.java.net/

sudo apt install openjdk-17-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: openjdk-17
  • 3 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Openjdk 17
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: openjdk-17-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

openjdk-17-jdk 17.0.11+9-1

OpenJDK Development Kit (JDK)

https://openjdk.java.net/

sudo apt install openjdk-17-jdk
  • Section: java
  • Architecture: amd64
  • Source Package: openjdk-17
  • 4 依赖
  • 16 提供
  • 4 可选依赖
  • normalized package name match
  • 匹配方式:Openjdk 17
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: openjdk-17-jdk from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

openjdk-17-jdk-headless 17.0.11+9-1

OpenJDK Development Kit (JDK) (headless)

https://openjdk.java.net/

sudo apt install openjdk-17-jdk-headless
  • Section: java
  • Architecture: amd64
  • Source Package: openjdk-17
  • 3 依赖
  • 16 提供
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Openjdk 17
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: openjdk-17-jdk-headless from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

openjdk-17-jre 17.0.11+9-1

OpenJDK Java runtime, using Hotspot JIT

https://openjdk.java.net/

sudo apt install openjdk-17-jre
  • Section: java
  • Architecture: amd64
  • Source Package: openjdk-17
  • 24 依赖
  • 15 提供
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Openjdk 17
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: openjdk-17-jre from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

openjdk-17-jre-headless 17.0.11+9-1

OpenJDK Java runtime, using Hotspot JIT (headless)

https://openjdk.java.net/

sudo apt install openjdk-17-jre-headless
  • Section: java
  • Architecture: amd64
  • Source Package: openjdk-17
  • 11 依赖
  • 15 提供
  • 12 可选依赖
  • normalized package name match
  • 匹配方式:Openjdk 17
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: openjdk-17-jre-headless from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

openjdk-17-jre-zero 17.0.11+9-1

Alternative JVM for OpenJDK, using Zero

https://openjdk.java.net/

sudo apt install openjdk-17-jre-zero
  • Section: universe/java
  • Architecture: amd64
  • Source Package: openjdk-17
  • 4 依赖
  • normalized package name match
  • 匹配方式:Openjdk 17
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: openjdk-17-jre-zero from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

openjdk-17-source 17.0.11+9-1

OpenJDK Development Kit (JDK) source files

https://openjdk.java.net/

sudo apt install openjdk-17-source
  • Section: java
  • Architecture: all
  • Source Package: openjdk-17
  • 1 依赖
  • normalized package name match
  • 匹配方式:Openjdk 17
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: openjdk-17-source from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
MacPorts94%

openjdk17

sudo port install openjdk17
  • package manager index match
  • 匹配方式:Openjdk17
MacPorts ports tree · api.github.com · MacPorts ports tree: java/openjdk17/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Nix92%

openjdk17

nix profile install nixpkgs#openjdk17
  • package manager index match
  • 匹配方式:Openjdk17
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: openjdk17 from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
apk92%

openjdk17 17.0.19_p10-r0

Oracle OpenJDK 17

https://github.com/openjdk/jdk17u

sudo apk add openjdk17
  • License: GPL-2.0-with-classpath-exception
  • Architecture: x86_64
  • Source Package: openjdk17
  • 1 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Openjdk17
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: openjdk17 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

openjdk17-demos 17.0.19_p10-r0

Oracle OpenJDK 17 (demos)

https://github.com/openjdk/jdk17u

sudo apk add openjdk17-demos
  • License: GPL-2.0-with-classpath-exception
  • Architecture: x86_64
  • Source Package: openjdk17
  • package manager index match
  • 匹配方式:Openjdk17
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: openjdk17-demos from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

openjdk17-doc 17.0.19_p10-r0

Oracle OpenJDK 17 (Documentation)

https://github.com/openjdk/jdk17u

sudo apk add openjdk17-doc
  • License: GPL-2.0-with-classpath-exception
  • Architecture: x86_64
  • Source Package: openjdk17
  • package manager index match
  • 匹配方式:Openjdk17
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: openjdk17-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

openjdk17-jdk 17.0.19_p10-r0

Oracle OpenJDK 17 (JDK) (server variant)

https://github.com/openjdk/jdk17u

sudo apk add openjdk17-jdk
  • License: GPL-2.0-with-classpath-exception
  • Architecture: x86_64
  • Source Package: openjdk17
  • 1 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Openjdk17
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: openjdk17-jdk from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

openjdk17-jmods 17.0.19_p10-r0

Oracle OpenJDK 17 (jmods)

https://github.com/openjdk/jdk17u

sudo apk add openjdk17-jmods
  • License: GPL-2.0-with-classpath-exception
  • Architecture: x86_64
  • Source Package: openjdk17
  • package manager index match
  • 匹配方式:Openjdk17
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: openjdk17-jmods from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Nucleus package database
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment