[MacOS installation jdk8]

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
Insert image description herein 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.
Insert image description here
Double-click again. Click
Insert image description here
to continue .
Insert image description here
Click to install
Insert image description here
. 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)
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_44749264/article/details/131386545