openjdk@21

Install command:
brew install openjdk@21

Development kit for the Java programming language

https://openjdk.java.net/

License: GPL-2.0-only WITH Classpath-exception-2.0

Formula JSON API: /api/formula/openjdk@21.json

Formula code: openjdk@21.rb on GitHub

Bottle (binary package) installation support provided for:

Intel sonoma
ventura
64-bit linux
Apple Silicon sequoia
sonoma
ventura

Current versions:

stable 21.0.4

Other versions:

openjdk@17 17.0.12 Development kit for the Java programming language
openjdk@11 11.0.24 Development kit for the Java programming language
openjdk@8 1.8.0-422 Development kit for the Java programming language

Keg-only

Depends on:

freetype 2.13.3 Software library to render fonts
giflib 5.2.2 Library and utilities for processing GIFs
harfbuzz 10.0.1 OpenType text shaping engine
jpeg-turbo 3.0.4 JPEG image codec that aids compression and decompression
libpng 1.6.44 Library for manipulating PNG images
little-cms2 2.16 Color management engine supporting ICC profiles

Depends on when building from source:

autoconf 2.72 Automatic configure script builder
pkg-config 0.29.2 Manage compile and link flags for libraries

Requires: Xcode (build), macOS >= 10.15

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
Fork me on GitHub