openjdk@17

Deprecation date: 2027-09-30

Disable date: 2029-09-30

Install command:
brew install openjdk@17

Development kit for the Java programming language

https://openjdk.org/

License: GPL-2.0-only WITH Classpath-exception-2.0

Development: Pull requests

Formula JSON API: /api/formula/openjdk@17.json

Formula code: openjdk@17.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 17.0.21.0.3

Other versions:

openjdk@25 25.0.5.0.3 Development kit for the Java programming language
openjdk@21 21.0.13.0.3 Development kit for the Java programming language
openjdk@11 11.0.33 Development kit for the Java programming language
openjdk@8 1.8.0-512 Development kit for the Java programming language

Keg-only because this is an alternate version of another formula.

Depends on:

freetype 2.15.0 Software library to render fonts
giflib 6.1.3 Library and utilities for processing GIFs
harfbuzz 15.1.0 OpenType text shaping engine
jpeg-turbo 3.2.1 JPEG image codec that aids compression and decompression
libpng 1.6.59 Library for manipulating PNG images
little-cms2 2.19.1 Color management engine supporting ICC profiles

Depends on when building from source:

autoconf 2.73 Automatic configure script builder
pkgconf 3.0.10 Package compiler and linker metadata toolkit

Uses from macOS: unzip (build), zip (build), cups (no_linkage)

Requires: Xcode (build)

Binaries: jar, jarsigner, java, javac, javadoc, javap, jcmd, jconsole, jdb, jdeprscan, jdeps, jfr, jhsdb, jimage, jinfo, jlink, jmap, jmod, jpackage, jps, jrunscript, jshell, jstack, jstat, jstatd, keytool, rmiregistry, serialver

For the system Java wrappers to find this JDK, symlink it with
    sudo ln -sfn $HOMEBREW_PREFIX/opt/openjdk@17/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-17.jdk

GitHub Packages downloads:

Last 30 days269,213
Downloads6,587,996
Analytics install events (30 days)33,703
Downloads / install events (30 days)8.0×

Source: GitHub Packages, fetched 2026-11-08T00:52:37Z. Analytics dates: 2026-10-09 to 2026-11-08. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs33,61478,904342,278
Installs (--HEAD)89171582
Installs on Request32,23175,818327,898
Installs on Request (--HEAD)89171582
Build Errors313