brew cask install adoptopenjdk
brew tap AdoptOpenJDK/openjdk
brew cask install <version>
Java Version | JDK | JRE |
---|---|---|
OpenJDK8 with Hotspot JVM | adoptopenjdk8 |
adoptopenjdk8-jre |
OpenJDK8 with OpenJ9 JVM | adoptopenjdk8-openj9 |
adoptopenjdk8-openj9-jre |
OpenJDK8 with OpenJ9 JVM, large heap* | adoptopenjdk8-openj9-large |
adoptopenjdk8-openj9-jre-large |
OpenJDK9 with Hotspot JVM | adoptopenjdk9 |
n/a |
OpenJDK10 with Hotspot JVM | adoptopenjdk10 |
n/a |
OpenJDK11 with Hotspot JVM | adoptopenjdk11 |
adoptopenjdk11-jre |
OpenJDK11 with OpenJ9 JVM | adoptopenjdk11-openj9 |
adoptopenjdk11-openj9-jre |
OpenJDK11 with OpenJ9 JVM, large heap* | adoptopenjdk11-openj9-large |
adoptopenjdk11-openj9-jre-large |
OpenJDK12 with Hotspot JVM | adoptopenjdk12 |
adoptopenjdk12-jre |
OpenJDK12 with OpenJ9 JVM | adoptopenjdk12-openj9 |
adoptopenjdk12-openj9-jre |
OpenJDK12 with OpenJ9 JVM, large heap* | adoptopenjdk12-openj9-large |
adoptopenjdk12-openj9-jre-large |
OpenJDK13 with Hotspot JVM | adoptopenjdk13 |
adoptopenjdk13-jre |
OpenJDK13 with OpenJ9 JVM | adoptopenjdk13-openj9 |
adoptopenjdk13-openj9-jre |
OpenJDK13 with OpenJ9 JVM, large heap* | adoptopenjdk13-openj9-large |
adoptopenjdk13-openj9-jre-large |
* Large heap: Use this if you need heap memory > 57GB, or > 25GB on Linux. It enables -Xnocompressedref
(doc). Use it along with -Xmx
(doc) which sets the max heap size.