Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, Nix, winget, dnf, zypper 安装 openjdk

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install openjdk

local Homebrew formula metadata

Windows

Chocolatey已验证 · 92%
choco install openjdk

Chocolatey community package catalog · openjdk · 来源: 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

命令和别名

  • jar
  • jarsigner
  • java
  • javac
  • javadoc
  • javap
  • jcmd
  • jconsole
  • jdb
  • jdeprscan
  • jdeps
  • jfr
  • jhsdb
  • jimage
  • jinfo
  • jlink
  • jmap
  • jmod
  • jnativescan
  • jpackage
  • jps
  • jshell
  • jstack
  • jstat
  • jstatd
  • jwebserver
  • keytool
  • rmiregistry
  • serialver

历史

项目历史与用法

OpenJDK is the open-source implementation community for the Java Platform, Standard Edition, and the upstream source base from which many Java Development Kit distributions are built. The Homebrew openjdk formula packages the general JDK toolchain: java, javac, jar, javadoc, jshell, jlink, jpackage, jcmd, jfr, keytool, and many diagnostic utilities.

项目历史

OpenJDK began from Sun Microsystems' 2006 initiative to open source Java and the core Java platform. Red Hat's historical account says the major platform components were released over the next few years as free and open-source software under the GPL.

After Sun's acquisition by Oracle, OpenJDK continued as the central upstream for Java SE implementation work. The OpenJDK homepage describes it as the place to collaborate on an open-source implementation of Java SE and related projects, while the JDK Project describes its goal as producing a series of open-source reference implementations of the Java SE Platform.

采用历史

OpenJDK became the shared upstream for a multi-vendor Java ecosystem. Oracle, Red Hat, IBM, Microsoft, Amazon, Azul, SAP, and other vendors build or support JDK distributions derived from the OpenJDK code base, while the OpenJDK Community develops language, VM, library, tooling, and platform features through projects and JEPs.

The release model changed after JDK 9. OpenJDK's JDK Project documents a six-month feature-release cadence, and JEP 14 describes the tip-and-tail model: frequent feature releases at the tip, quarterly update releases in tail trains, and vendor-designated long-term support lines such as JDK 8, 11, 17, and 21.

使用方式

Developers install OpenJDK when they need the Java compiler, runtime, standard libraries, build tools, documentation tools, packaging tools, and diagnostics needed to build and run Java software. Operators often install it indirectly because build systems, language servers, CI jobs, application servers, Android-adjacent tooling, and JVM languages all expect a JDK on PATH or discoverable through platform Java wrappers.

On macOS, Homebrew marks openjdk as keg-only and documents the symlink needed for /usr/libexec/java_home and other system Java wrappers to find the JDK bundle. That detail is a classic Java-packaging issue: package managers can install many JDKs, but tools need a policy for which one wins.

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

OpenJDK is one of the most consequential packages in a package manager because it is both a developer-facing SDK and a build-time dependency for other packages. It also carries a distinctive license shape, GPLv2 with the Classpath Exception, which lets the JDK remain copyleft while supporting broad Java application distribution.

时间线

  • 2006: Sun Microsystems announced the initiative that led to OpenJDK.
  • 2007: Red Hat signed Sun's OpenJDK contributor and TCK agreements, becoming a major outside participant in the project.
  • 2018: the OpenJDK Community adopted the six-month tip-and-tail release model beginning with JDK 10.
  • The JDK Project release list records JDK 11 general availability on 25 September 2018 and subsequent feature releases on a six-month cadence.

Related projects

  • OpenJDK is related to HotSpot, javac, Project Amber, Project Loom, Project Panama, Project Valhalla, OpenJDK update projects, Eclipse OpenJ9, and downstream distributions such as Oracle OpenJDK builds, Red Hat OpenJDK builds, Microsoft Build of OpenJDK, Amazon Corretto, Azul Zulu, SAP SapMachine, and Eclipse Temurin.

安全态势

风险级别:yellow

Java runtime and development kit.

风险分类器

yellow 风险 · 高 置信度 · runtime

原因

  • Java runtime and development kit

信号

  • override:openjdk

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
jarcli全局可执行文件
jarsignercli全局可执行文件
javacli全局可执行文件
javaccli全局可执行文件
javadoccli全局可执行文件
javapcli全局可执行文件
jcmdcli全局可执行文件
jconsolecli全局可执行文件
jdbcli全局可执行文件
jdeprscancli全局可执行文件
jdepscli全局可执行文件
jfrcli全局可执行文件
jhsdbcli全局可执行文件
jimagecli全局可执行文件
jinfocli全局可执行文件
jlinkcli全局可执行文件
jmapcli全局可执行文件
jmodcli全局可执行文件
jnativescancli全局可执行文件
jpackagecli全局可执行文件
jpscli全局可执行文件
jshellcli全局可执行文件
jstackcli全局可执行文件
jstatcli全局可执行文件
jstatdcli全局可执行文件
jwebservercli全局可执行文件
keytoolcli全局可执行文件
rmiregistrycli全局可执行文件
serialvercli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://github.com/openjdk/jdk26u

安装元数据

软件包元数据

软件包键brew:openjdk
版本26.0.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/openjdk
主页https://openjdk.org/
仓库https://github.com/openjdk/jdk26u
上游文档https://docs.oracle.com/en/java/javase
许可证GPL-2.0-only WITH Classpath-exception-2.0
源码归档https://github.com/openjdk/jdk26u/archive/refs/tags/jdk-26.0.1-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/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Nix95%

openjdk

nix profile install nixpkgs#openjdk
  • normalized package name match
  • 匹配方式:Openjdk
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: openjdk from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Chocolatey95%

openjdk

choco install openjdk
  • normalized package name match
  • 匹配方式:Openjdk
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: openjdk from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','office365homepremium'
winget95%

Microsoft.OpenJDK.17

winget install --id Microsoft.OpenJDK.17 -e
  • normalized package name match
  • 匹配方式:Openjdk
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Microsoft.OpenJDK.17 from https://cdn.winget.microsoft.com/cache/source.msix
winget95%

ojdkbuild.ojdkbuild

winget install --id ojdkbuild.ojdkbuild -e
  • normalized package name match
  • 匹配方式:Openjdk
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: ojdkbuild.ojdkbuild from https://cdn.winget.microsoft.com/cache/source.msix
dnf92%

java-25-openjdk 25.0.3.0.9-2.fc45

OpenJDK 25 Runtime Environment

http://openjdk.java.net/

sudo dnf install java-25-openjdk
  • License: Apache-1.1 AND Apache-2.0 AND LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising AND GPL-1.0-or-later AND GPL-2.0-only AND
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: java-25-openjdk
  • 14 依赖
  • 10 提供
  • installed executable or alias match
  • 匹配方式:Java
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: java-25-openjdk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper92%

java-11-openj9 11.0.31.0-4.1

OpenJDK 11 Runtime Environment with Eclipse OpenJ9 virtual machine

https://openjdk.java.net/

sudo zypper install java-11-openj9
  • License: Apache-1.1 AND Apache-2.0 AND EPL-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND
  • Category: Development/Languages/Java
  • Architecture: x86_64
  • Source Package: java-11-openj9
  • 16 依赖
  • 32 提供
  • installed executable or alias match
  • 匹配方式:Java
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: java-11-openj9 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

java-11-openjdk 11.0.31.0-3.1

OpenJDK 11 Runtime Environment

https://openjdk.java.net/

sudo zypper install java-11-openjdk
  • License: Apache-1.1 AND Apache-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND MPL-1.1 AND
  • Category: Development/Languages/Java
  • Architecture: x86_64
  • Source Package: java-11-openjdk
  • 15 依赖
  • 27 提供
  • installed executable or alias match
  • 匹配方式:Java
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: java-11-openjdk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

java-17-openj9 17.0.19.0-4.1

OpenJDK 17 Runtime Environment with Eclipse OpenJ9 virtual machine

https://openjdk.java.net/

sudo zypper install java-17-openj9
  • License: Apache-1.1 AND Apache-2.0 AND EPL-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND
  • Category: Development/Languages/Java
  • Architecture: x86_64
  • Source Package: java-17-openj9
  • 16 依赖
  • 32 提供
  • installed executable or alias match
  • 匹配方式:Java
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: java-17-openj9 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

java-17-openjdk 17.0.19.0-4.1

OpenJDK 17 Runtime Environment

https://openjdk.java.net/

sudo zypper install java-17-openjdk
  • License: Apache-1.1 AND Apache-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND MPL-1.1 AND
  • Category: Development/Languages/Java
  • Architecture: x86_64
  • Source Package: java-17-openjdk
  • 15 依赖
  • 27 提供
  • installed executable or alias match
  • 匹配方式:Java
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: java-17-openjdk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

java-1_8_0-openj9 1.8.0.492-4.1

OpenJDK 8 Runtime Environment with Eclipse OpenJ9 virtual machine

https://www.eclipse.org/openj9/

sudo zypper install java-1_8_0-openj9
  • License: Apache-1.1 AND Apache-2.0 AND EPL-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND
  • Category: Development/Languages/Java
  • Architecture: x86_64
  • Source Package: java-1_8_0-openj9
  • 19 依赖
  • 31 提供
  • installed executable or alias match
  • 匹配方式:Java
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: java-1_8_0-openj9 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

java-1_8_0-openjdk 1.8.0.492-3.1

OpenJDK 8 Runtime Environment

https://openjdk.java.net/

sudo zypper install java-1_8_0-openjdk
  • License: Apache-1.1 AND Apache-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND MPL-1.1 AND
  • Category: Development/Languages/Java
  • Architecture: x86_64
  • Source Package: java-1_8_0-openjdk
  • 19 依赖
  • 26 提供
  • installed executable or alias match
  • 匹配方式:Java
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: java-1_8_0-openjdk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

java-21-openj9 21.0.11.0-4.1

OpenJDK 21 Runtime Environment with Eclipse OpenJ9 virtual machine

https://openjdk.java.net/

sudo zypper install java-21-openj9
  • License: Apache-1.1 AND Apache-2.0 AND EPL-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND
  • Category: Development/Languages/Java
  • Architecture: x86_64
  • Source Package: java-21-openj9
  • 16 依赖
  • 32 提供
  • installed executable or alias match
  • 匹配方式:Java
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: java-21-openj9 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

java-21-openjdk 21.0.11.0-3.1

OpenJDK 21 Runtime Environment

https://openjdk.java.net/

sudo zypper install java-21-openjdk
  • License: Apache-1.1 AND Apache-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND MPL-1.1 AND
  • Category: Development/Languages/Java
  • Architecture: x86_64
  • Source Package: java-21-openjdk
  • 15 依赖
  • 27 提供
  • installed executable or alias match
  • 匹配方式:Java
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: java-21-openjdk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

java-25-openj9 25.0.3.0-4.1

OpenJDK 25 Runtime Environment with Eclipse OpenJ9 virtual machine

https://openjdk.java.net/

sudo zypper install java-25-openj9
  • License: Apache-1.1 AND Apache-2.0 AND EPL-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND
  • Category: Development/Languages/Java
  • Architecture: x86_64
  • Source Package: java-25-openj9
  • 17 依赖
  • 32 提供
  • installed executable or alias match
  • 匹配方式:Java
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: java-25-openj9 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

java-25-openjdk 25.0.3.0-3.1

OpenJDK 25 Runtime Environment

https://openjdk.java.net/

sudo zypper install java-25-openjdk
  • License: Apache-1.1 AND Apache-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND MPL-1.1 AND
  • Category: Development/Languages/Java
  • Architecture: x86_64
  • Source Package: java-25-openjdk
  • 16 依赖
  • 27 提供
  • installed executable or alias match
  • 匹配方式:Java
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: java-25-openjdk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

java-26-openjdk 26.0.1.0-2.1

OpenJDK 26 Runtime Environment

https://openjdk.java.net/

sudo zypper install java-26-openjdk
  • License: Apache-1.1 AND Apache-2.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Classpath-exception-2.0 AND LGPL-2.0-only AND MPL-1.0 AND MPL-1.1 AND
  • Category: Development/Languages/Java
  • Architecture: x86_64
  • Source Package: java-26-openjdk
  • 16 依赖
  • 27 提供
  • installed executable or alias match
  • 匹配方式:Java
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: java-26-openjdk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

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

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment