Install JDK on MacOS
Although jdk has now reached version 20, "you can do whatever you want, I use java8".
This article will introduce how to install jdk8 on mac system.
Download JDK8
The results obtained by Baidu search for jdk8 are very confusing, and it is difficult to find the official address, so here is the direct link https://www.oracle.com/cn/java/technologies/downloads/#java8-mac.
After opening, it is as follows, but jdk8 is not located. You can find it by scrolling down; click the link on the right and log in to download. Downloads
in China may be slow. Please provide the download address in the comment area.
Install
After the download is completed, you will get a file with the suffix .dmg, which is the installation package file format of the mac system.
Double-click to start the installation.
Double-click again. Click
to continue .
Click to install
. Complete fool-proof installation.
verify
Open the terminal
and enter java -version, the output is as follows (mine needs to be installed because it is version 11)