MAC install JDK:
This article is mainly for Install JDK1.8 and configure system environment variables under MAC Apple system. It is mainly divided into the following steps:
- Go to the Oracle official website to download the JDK1.8 installation package.
- Open the obtained installation package and install it on the system step by step.
- Configure system environment variables.
- Verify that JDK1.8 is installed successfully.
Download JDK1.8 installation package from Oracle official website
Download from jdk official website
Or go
Baidu cloud network disk Baidu SkyDrive extraction code: c62d
Open the obtained installation package and install it on the system step by step p>
After the download is complete, we get a dmg installation package, as shown in the figure below, the name is jdk-8u211-macosx-x64.dmg, which means that the version number of java8 is 211 JDK installation package.
Double-click the dmg installation package to open the window as shown in the figure below.
Click on JDK 8 Update 211.pkg, and then it is a fool-like installation. It has been installed according to the system prompts~
Configure system environment variables
In the previous step, on the actual label, we just copied the JDK1.8 files to the operating system. But if we want to use JAVA commands on the terminal, and let the actual application know the existence of the JDK1.8 environment, then we also need to configure the environment variables of the system.
First of all, we have to know where the JDK directory is installed. According to the path below, we can find the home directory of the JDK, as shown in the figure below.
/Library/Java/JavaVirtualMachines
1 cd /