openjdk

Install command:
brew install openjdk

Also known as: java, openjdk@23

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 sequoia
sonoma
ventura
Intel sonoma
ventura
64-bit linux

Current versions:

stable 23.0.1

Other versions:

openjdk@21 21.0.5 Development kit for the Java programming language
openjdk@17 17.0.13 Development kit for the Java programming language
openjdk@11 11.0.25 Development kit for the Java programming language
openjdk@8 1.8.0-432 Development kit for the Java programming language

Keg-only

Depends on:

freetype 2.13.3 Software library to render fonts
giflib 5.2.2 Library and utilities for processing GIFs
harfbuzz 10.1.0 OpenType text shaping engine
jpeg-turbo 3.1.0 JPEG image codec that aids compression and decompression
libpng 1.6.44 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
pkgconf 2.3.0 Package compiler and linker metadata toolkit

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 83,091
openjdk --HEAD 109
Installs on Request (30 days)
openjdk 45,831
openjdk --HEAD 108
Build Errors (30 days)
openjdk 1,758
Installs (90 days)
openjdk 320,584
openjdk --HEAD 522
Installs on Request (90 days)
openjdk 199,873
openjdk --HEAD 521
Installs (365 days)
openjdk 1,188,922
openjdk --HEAD 1,460
Installs on Request (365 days)
openjdk 704,365
openjdk --HEAD 1,458
Fork me on GitHub