openjdk

Install command:
brew install openjdk

Also known as: java, openjdk@18

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 monterey
big sur
catalina
64-bit linux
Apple Silicon monterey
big sur

Current versions:

stable 18.0.2.1

Other versions:

openjdk@17 17.0.4.1 Development kit for the Java programming language
openjdk@11 11.0.16.1 Development kit for the Java programming language
openjdk@8 1.8.0+345 Development kit for the Java programming language

Keg-only

Depends on when building from source:

autoconf 2.71 Automatic configure script builder

Requires: Xcode (build), macOS >= 10.15

For the system Java wrappers to find this JDK, symlink it with
    sudo ln -sfn $(brew --prefix)/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
Fork me on GitHub