Install Java 8 (OpenJDK: Zulu Community) on macOS with Homebrew

Overview

--Shows how to install Java 8 (Zulu Community with OpenJDK built) on macOS with Homebrew

What is Zulu Community?

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.

Install Zulu Community 8

Zulu Community 8 is located in homebrew / cask-versions, so use it to install.

$ brew cask install zulu8

Check the location of the installed directory with the java_home command

$ /usr/libexec/java_home -v 1.8
/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home

Set the environment variables JAVA_HOME and PATH

Describe it in .bash_profile or .bashrc as needed.

$ export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
$ PATH=${JAVA_HOME}/bin:${PATH}

Check the installed Zulu Community

$ 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

Uninstall when no longer needed

$ brew cask uninstall zulu8

Reference material

-Zulu Community Java OpenJDK Free Download TCK Tested

Recommended Posts

Install Java 8 (OpenJDK: Zulu Community) on macOS with Homebrew
Install Java 11 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
Install Java 14 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
Install Java 8 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
Install Java 8 (OpenJDK: Amazon Corretto) on macOS with Homebrew
[Java development environment construction] Install OpenJDK 11 (Java 11) on macOS with Homebrew.
Install java with Homebrew
Install OpenJDK7 (JAVA) on ubuntu 14.04
Install Java with zip on Windows
Install OpenJDK (Java) on the latest Ubuntu
Install Java8 with Yum on Amazon Linux
Install java and android-sdk on Mac using homebrew
Easily switch Java versions with alias on macOS
Install Java on Mac
Install Java with Ansible
Install OpenJDK8 with RPM
Install openjdk11 on mac
Install Homebrew on Ubuntu 20.04
Install OpenJDK 8 on mac
Install Ruby 3.0.0-preview1 on macOS (also without Homebrew ruby-build)
Java version control on macOS
Install Java on WSL Ubuntu 18.04
Install java 1.8.0 on Amazon linux2
Install openjdk8 on Docker image (Debian)
Install Ruby on MSYS2 with pacman
Install java with Ubuntu 16.04 based Docker
Install Java and Tomcat with Ansible
Install Java Open JDK 8 on CentOS 7
Install and configure jenv on macOS
How to install Adopt OpenJDK on Debian, Ubuntu with apt (-get)
Install ruby on Ubuntu 20.04 with rbenv
Install Java 9 on windows 10 and CentOS 7
Install Java development environment on Mac
If you can't install java on Catalina
Install imagick on macOS Catalina + php 7.4 Note
Salesforce data loader released with Zulu OpenJDK 11
Using JupyterLab + Java with WSL on Windows 10
Install Docker Desktop for Mac with Homebrew
Java version control with jenv on OSX
Build OpenCV with Java Wrapper on Ubuntu 18.04
Install NextCloud on CentOS 7 with Alibaba Cloud ECS
Note Book: OpenCV with CUDA Install On Windows10
Install GitLab on CentOS 8 with no internet connection
Install Java, Apache, Tomcat9 on EC2 (Amazon Linux2)
Switch versions with alternatives after yum install java
Introducing Eclipse IoT-Part2: Install Eclipse Neon.2 on macOS Sierra