openjdk

Install command:
brew install openjdk

Also known as: java, openjdk@19

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

Bottle JSON API: /api/bottle/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 19

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:

giflib 5.2.1 Library and utilities for processing GIFs
harfbuzz 5.2.0 OpenType text shaping engine
jpeg-turbo 2.1.4 JPEG image codec that aids compression and decompression
libpng 1.6.38 Library for manipulating PNG images
little-cms2 2.13.1 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 $(brew --prefix)/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk

Analytics (macOS):

Installs (30 days)
openjdk 278,646
Installs on Request (30 days)
openjdk 86,446
Build Errors (30 days)
openjdk 119
Installs (90 days)
openjdk 727,549
Installs on Request (90 days)
openjdk 217,151
Installs (365 days)
openjdk 2,610,171
Installs on Request (365 days)
openjdk 747,105

Analytics (Linux):

Installs (30 days)
openjdk 3,728
Installs on Request (30 days)
openjdk 1,235
Build Errors (30 days)
openjdk 36
Installs (90 days)
openjdk 11,109
Installs on Request (90 days)
openjdk 3,051
Installs (365 days)
openjdk 39,931
Installs on Request (365 days)
openjdk 10,419
Fork me on GitHub