FastBrew

Formula v21.0.13.1

openjdk@21

Development kit for the Java programming language

$
brew install openjdk@21
License
GPL-2.0-only WITH Classpath-exception-2.0
Website
openjdk.org

About openjdk@21

openjdk@21 is a Homebrew formula, which installs a command-line package. FastBrew lists it under Utilities.

Homebrew users installed it 341,941 times in the past year. That ranks it #151 of 13007 apps in Utilities.

Homebrew ships version 21.0.13.1, updated on November 18, 2026.

Commands

Install
brew install openjdk@21
Update
brew upgrade openjdk@21
Uninstall
brew uninstall openjdk@21

Dependencies

Build dependencies

Installation notes

For the system Java wrappers to find this JDK, symlink it with
  sudo ln -sfn $HOMEBREW_PREFIX/opt/openjdk@21/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-21.jdk

Homebrew installs

+37.9% vs 90 day average
30 days
41.8K
1.4K a day
90 days
90.9K
1K a day
1 year
341.9K
937 a day
View all

formula Utilities

xz

General-purpose data compression with high compression ratio

xz details, v5.8.4

formula Utilities

zstd

Zstandard is a real-time compression algorithm