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

Current versions:

stable 19.0.2

Other versions:

openjdk@17 17.0.6 Development kit for the Java programming language
openjdk@11 11.0.18 Development kit for the Java programming language
openjdk@8 1.8.0+362 Development kit for the Java programming language

Keg-only

Depends on:

giflib 5.2.1 Library and utilities for processing GIFs
harfbuzz 6.0.0 OpenType text shaping engine
jpeg-turbo 2.1.4 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 $(brew --prefix)/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk

Analytics (macOS):

Installs (30 days)
openjdk 163,861
Installs on Request (30 days)
openjdk 60,695
Build Errors (30 days)
openjdk 479
Installs (90 days)
openjdk 550,430
Installs on Request (90 days)
openjdk 190,851
Installs (365 days)
openjdk 2,590,034
Installs on Request (365 days)
openjdk 780,800

Analytics (Linux):

Installs (30 days)
openjdk 3,135
Installs on Request (30 days)
openjdk 895
Build Errors (30 days)
openjdk 5
Installs (90 days)
openjdk 8,824
Installs on Request (90 days)
openjdk 2,938
Installs (365 days)
openjdk 40,732
Installs on Request (365 days)
openjdk 11,397
Fork me on GitHub