openjdk

Install command:
brew install openjdk

Also known as: java, openjdk@20

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-core/openjdk.json

Bottle JSON API: /api/bottle-core/openjdk.json

Formula code: openjdk.rb on GitHub

Bottle (binary package) installation support provided for:

Intel ventura
monterey
big sur
64-bit linux
Apple Silicon ventura
monterey
big sur

Current versions:

stable 20.0.1

Other versions:

openjdk@17 17.0.7 Development kit for the Java programming language
openjdk@11 11.0.19 Development kit for the Java programming language
openjdk@8 1.8.0+372 Development kit for the Java programming language

Keg-only

Depends on:

giflib 5.2.1 Library and utilities for processing GIFs
harfbuzz 7.1.0 OpenType text shaping engine
jpeg-turbo 2.1.5.1 JPEG image codec that aids compression and decompression
libpng 1.6.39 Library for manipulating PNG images
little-cms2 2.14 Color management engine supporting ICC profiles

Depends on when building from source:

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