openjdk@21 for Mac
Development kit for the Java programming language
openjdk@21 — overview
Welcome to OpenJDK 21 Updates!
The JDK 21 Updates project uses two GitHub repositories. Updates are continuously developed in the repository jdk21u-dev. This is the repository usually targeted by contributors. The jdk21u repository is used for rampdown of the update releases of jdk21u and only accepts critical changes that must make the next release during rampdown. (You probably do not want to target jdk21u).
For more OpenJDK 21 updates specific information such as timelines and contribution guidelines see the project wiki page.
For build instructions please see the online documentation, or either of these files: doc/building.html (html version) doc/building.md (markdown version)
See for more information about the OpenJDK Community and the JDK and see for JDK issue tracking.
Details
Java编程语言开发工具包
How to install openjdk@21
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
This project has no GitHub releases yet.
Depended on by 50 apps
The following apps install it automatically, ranked by 30-day installs:
- bazel1,070 installs/mo
- neo4j617 installs/mo
- neo4j617 installs/mo
- jenkins-lts536 installs/mo
- jenkins-lts536 installs/mo
- gradle@8456 installs/mo
- jenkins432 installs/mo
- jmeter372 installs/mo
- kotlin-language-server364 installs/mo
- detekt291 installs/mo
- apache-spark205 installs/mo
- cypher-shell166 installs/mo
Prebuilt bottle platforms
Official Homebrew bottles cover:
- Apple silicon · latest macOS
- Apple silicon · macOS 26 Tahoe
- Apple silicon · macOS 15 Sequoia
- Linux · ARM64
- Linux · x86_64
⚠️ No prebuilt bottle for Intel Macs; Intel users need brew install --build-from-source to build from source.
Installation notes
For the system Java wrappers to find this JDK, symlink it withn sudo ln -sfn $HOMEBREW_PREFIX/opt/openjdk@21/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-21.jdkn
Compared with similar apps
Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| openjdk@21 | 21.0.13.0.2 | GPL-2.0-only WITH Classpath-exception-2.0 | CLI | 41,214 |
| openjdk@17 | 17.0.21.0.2 | GPL-2.0-only WITH Classpath-exception-2.0 | CLI | 35,040 |
| openjdk | 27.0.1.0.3 | GPL-2.0-only WITH Classpath-exception-2.0 | CLI | 63,605 |
| python@3.15 | 3.15.1 | Python-2.0 | CLI | 16,877 |
Similar apps: Developer Tools
openjdk@17
Development kit for the Java programming languageopenjdk
Development kit for the Java programming languagepython@3.15
Python is an interpreted, interactive, object-oriented programming language suitable for a wide…lua
Lua is a powerful and lightweight programming language known for being concise, flexible, and…python@3.11
Python 3.11 is an interpreted, interactive, object-oriented programming language and a…python@3.13
Python is an interpreted, interactive, object-oriented programming language known for its clear…Categories: Command-line Tools, Developer Tools