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.10 Development kit for the Java programming language
openjdk@11 11.0.22 Development kit for the Java programming language
openjdk@8 1.8.0-392 Development kit for the Java programming language

Keg-only

Depends on:

giflib 5.2.1 Library and utilities for processing GIFs
harfbuzz 8.3.0 OpenType text shaping engine
jpeg-turbo 3.0.1 JPEG image codec that aids compression and decompression
libpng 1.6.42 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 94,934
openjdk --HEAD 105
Installs on Request (30 days)
openjdk 54,923
openjdk --HEAD 105
Build Errors (30 days)
openjdk 371
Installs (90 days)
openjdk 245,427
openjdk --HEAD 245
Installs on Request (90 days)
openjdk 136,768
openjdk --HEAD 245
Installs (365 days)
openjdk 954,578
openjdk --HEAD 1,069
Installs on Request (365 days)
openjdk 555,259
openjdk --HEAD 1,062
Fork me on GitHub