openjdk@8 (deprecated)

Disable date: 2030-12-31

Install command:
brew install openjdk@8

Development kit for the Java programming language

https://openjdk.org/

License: GPL-2.0-only

Development: Pull requests

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

Formula code: openjdk@8.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Intel
sonoma ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 1.8.0-504

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@17 17.0.21.0.3 Development kit for the Java programming language
openjdk@11 11.0.32.1 Development kit for the Java programming language

Patches:

https://raw.githubusercontent.com/macports/macports-ports/04ad4a17332e391cd359271965d4c6dac87a7eb2/java/openjdk8/files/0001-8181503-Can-t-compile-hotspot-with-c-11.patch
https://raw.githubusercontent.com/macports/macports-ports/04ad4a17332e391cd359271965d4c6dac87a7eb2/java/openjdk8/files/0006-Disable-C-11-warnings.patch

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

Depends on when building from source:

autoconf 2.73 Automatic configure script builder
pkgconf 3.0.10 Package compiler and linker metadata toolkit
gawk 5.4.1 GNU awk utility

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

Requires: x86_64 architecture

Binaries: appletviewer, clhsdb, extcheck, hsdb, idlj, jar, jarsigner, java, java-rmi.cgi, javac, javadoc, javah, javap, jcmd, jconsole, jdb, jdeps, jfr, jhat, jinfo, jjs, jmap, jps, jrunscript, jsadebugd, jstack, jstat, jstatd, keytool, native2ascii, orbd, pack200, policytool, rmic, rmid, rmiregistry, schemagen, serialver, servertool, tnameserv, unpack200, wsgen, wsimport, xjc

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

Analytics:

30 days90 days365 days
Installs4922,73916,784
Installs (--HEAD)003
Installs on Request4742,69515,499
Installs on Request (--HEAD)003
Build Errors14