Take a look at how you can quickly get started with OpenJDK with this tutorial that gives you commands for installing version 7-11 through a Mac Terminal.
Java SE 8 Archive Downloads (JDK 8u202 and earlier) Go to the Oracle Java Archive. The JDK is a development environment for building applications using the Java programming language. The JDK includes tools useful for developing and testing programs written in the Java programming language and running on the Java TM platform. VisualVM is distributed as a standalone tool here and bundled with the GraalVM. Both are the same bits with the same features. Standalone tool runs on any compatible JDK, bundled tool is configured to run using the host GraalVM. VisualVM has also been distributed in Oracle JDK 68 as Java VisualVM.
Join the DZone community and get the full member experience.
Join For FreeIn this article, I will be using Homebrewto install OpenJDK versions on the Mac.
We use brew install
to install JDK versions 8,9,10, andbrew cask install
for version 11 and above.
All the brew commands are executed in the Terminal window on the Mac.
Install OpenJDK Versions 8, 9, and 10
brew tap AdoptOpenJDK/openjdk
brew search /adoptopenjdk/
The Formulae section contains the identifiers for the various JDK versions.
To install a specific JDK version: brew install <identifier>
e.g. to install OpenJDK 8: brew install adoptopenjdk/openjdk/adoptopenjdk-openjdk8
JAVA_HOME should be set by the developer to /usr/local/Cellar/adoptopenjdk-openjdk8/jdk8u172-b11.
Install OpenJDK Version 11
brew cask install adoptopenjdk
JAVA_HOME should be set by the developer to /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk.
Opinions expressed by DZone contributors are their own.
Popular on DZone
Download Jdk For Mac Os
Learn about the key active Projects in the Communityincluding Amber (high-productivitylanguage features), Loom(lightweight concurrency), Panama(foreign functions and foreign data), Valhalla(primitive types and specialized generics), and, of course,the next version of Java and theJDK.
If you want to learn how to use the Java that’s availabletoday, head over to dev.java.
Hack