--Shows how to install Java 8 (Zulu Community with OpenJDK built) on macOS with Homebrew
Zulu Community is an OpenJDK distribution distributed by Azul Systems.
Zulu Community Java OpenJDK Free Download TCK Tested
Azul will provide quarterly updates for the Zulu Community build of OpenJDK 7 until July 2023, the OpenJDK 8 build will be updated until March 2026, and the OpenJDK 11 build will be updated until September 2027. Intermediate releases like Java 9, 10, 12, 15, 16 will be updated for at least 6 months from the first release. Azul also maintains an archive of OpenJDK Zulu Community builds since 2014.
Zulu Community 8 will be supported until March 2026.
Zulu Community 8 is located in homebrew / cask-versions, so use it to install.
$ brew cask install zulu8
$ /usr/libexec/java_home -v 1.8
/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
Describe it in .bash_profile or .bashrc as needed.
$ export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
$ PATH=${JAVA_HOME}/bin:${PATH}
$ java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (Zulu 8.40.0.25-CA-macosx) (build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (Zulu 8.40.0.25-CA-macosx) (build 25.222-b10, mixed mode)
$ javac -version
javac 1.8.0_222
$ which java
/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/bin/java
$ which javac
/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/bin/javac
$ brew cask uninstall zulu8
-Zulu Community Java OpenJDK Free Download TCK Tested
Recommended Posts