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.3

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.3 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 99,806
openjdk --HEAD 98
Installs on Request (30 days)
openjdk 57,853
openjdk --HEAD 98
Build Errors (30 days)
openjdk 298
Installs (90 days)
openjdk 249,060
openjdk --HEAD 273
Installs on Request (90 days)
openjdk 141,207
openjdk --HEAD 273
Installs (365 days)
openjdk 986,375
openjdk --HEAD 1,170
Installs on Request (365 days)
openjdk 564,965
openjdk --HEAD 1,164
Fork me on GitHub