openjdk

Install command:
brew install openjdk

Also known as: java, 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.json

Formula code: openjdk.rb on GitHub

Bottle (binary package) installation support provided for:

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

Current versions:

stable 21.0.2

Other versions:

openjdk@17 17.0.11 Development kit for the Java programming language
openjdk@11 11.0.23 Development kit for the Java programming language
openjdk@8 1.8.0-412 Development kit for the Java programming language

Keg-only

Depends on:

giflib 5.2.2 Library and utilities for processing GIFs
harfbuzz 8.4.0 OpenType text shaping engine
jpeg-turbo 3.0.2 JPEG image codec that aids compression and decompression
libpng 1.6.43 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/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk

Analytics:

Installs (30 days)
openjdk 64,377
openjdk --HEAD 72
Installs on Request (30 days)
openjdk 34,780
openjdk --HEAD 72
Build Errors (30 days)
openjdk 334
Installs (90 days)
openjdk 246,272
openjdk --HEAD 266
Installs on Request (90 days)
openjdk 139,398
openjdk --HEAD 266
Installs (365 days)
openjdk 986,073
openjdk --HEAD 1,180
Installs on Request (365 days)
openjdk 567,911
openjdk --HEAD 1,173
Fork me on GitHub