macOS
brew install openjdklocal Homebrew formula metadata
安装
brew install openjdklocal Homebrew formula metadata
nix profile install nixpkgs#openjdknixpkgs package indexes · openjdk · 来源: raw.githubusercontent.com
sudo dnf install java-25-openjdkFedora Rawhide package metadata · java-25-openjdk · 来源: dl.fedoraproject.org
sudo zypper install java-11-openj9openSUSE Tumbleweed package metadata · java-11-openj9 · 来源: download.opensuse.org
choco install openjdkChocolatey community package catalog · openjdk · 来源: community.chocolatey.org
winget install --id Microsoft.OpenJDK.17 -eWindows Package Manager source index · Microsoft.OpenJDK.17 · 来源: cdn.winget.microsoft.com
概览
Development kit for the Java programming language
历史
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.
安全态势
Java runtime and development kit.
yellow 风险 · 高 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
jar | cli | 全局可执行文件 | |
jarsigner | cli | 全局可执行文件 | |
java | cli | 全局可执行文件 | |
javac | cli | 全局可执行文件 | |
javadoc | cli | 全局可执行文件 | |
javap | cli | 全局可执行文件 | |
jcmd | cli | 全局可执行文件 | |
jconsole | cli | 全局可执行文件 | |
jdb | cli | 全局可执行文件 | |
jdeprscan | cli | 全局可执行文件 | |
jdeps | cli | 全局可执行文件 | |
jfr | cli | 全局可执行文件 | |
jhsdb | cli | 全局可执行文件 | |
jimage | cli | 全局可执行文件 | |
jinfo | cli | 全局可执行文件 | |
jlink | cli | 全局可执行文件 | |
jmap | cli | 全局可执行文件 | |
jmod | cli | 全局可执行文件 | |
jnativescan | cli | 全局可执行文件 | |
jpackage | cli | 全局可执行文件 | |
jps | cli | 全局可执行文件 | |
jshell | cli | 全局可执行文件 | |
jstack | cli | 全局可执行文件 | |
jstat | cli | 全局可执行文件 | |
jstatd | cli | 全局可执行文件 | |
jwebserver | cli | 全局可执行文件 | |
keytool | cli | 全局可执行文件 | |
rmiregistry | cli | 全局可执行文件 | |
serialver | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 |
| Pulse | updated |
| 依赖 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | openjdk |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
openjdk
nix profile install nixpkgs#openjdkopenjdk
choco install openjdkMicrosoft.OpenJDK.17
winget install --id Microsoft.OpenJDK.17 -eojdkbuild.ojdkbuild
winget install --id ojdkbuild.ojdkbuild -ejava-25-openjdk 25.0.3.0.9-2.fc45
OpenJDK 25 Runtime Environment
sudo dnf install java-25-openjdkjava-11-openj9 11.0.31.0-4.1
OpenJDK 11 Runtime Environment with Eclipse OpenJ9 virtual machine
sudo zypper install java-11-openj9java-11-openjdk 11.0.31.0-3.1
OpenJDK 11 Runtime Environment
sudo zypper install java-11-openjdkjava-17-openj9 17.0.19.0-4.1
OpenJDK 17 Runtime Environment with Eclipse OpenJ9 virtual machine
sudo zypper install java-17-openj9java-17-openjdk 17.0.19.0-4.1
OpenJDK 17 Runtime Environment
sudo zypper install java-17-openjdkjava-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-openj9java-1_8_0-openjdk 1.8.0.492-3.1
OpenJDK 8 Runtime Environment
sudo zypper install java-1_8_0-openjdkjava-21-openj9 21.0.11.0-4.1
OpenJDK 21 Runtime Environment with Eclipse OpenJ9 virtual machine
sudo zypper install java-21-openj9java-21-openjdk 21.0.11.0-3.1
OpenJDK 21 Runtime Environment
sudo zypper install java-21-openjdkjava-25-openj9 25.0.3.0-4.1
OpenJDK 25 Runtime Environment with Eclipse OpenJ9 virtual machine
sudo zypper install java-25-openj9java-25-openjdk 25.0.3.0-3.1
OpenJDK 25 Runtime Environment
sudo zypper install java-25-openjdkjava-26-openjdk 26.0.1.0-2.1
OpenJDK 26 Runtime Environment
sudo zypper install java-26-openjdk来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.