JDK installation configuration under Mac, MacJDK installation Configuration
First, you can download JDK: composer from the official website.
After the installation package is downloaded, run the installation package and continue and confirm the installation package.
After installing the package, open the terminal to create the. bash_profile configuration file.
Touch ~ /. Bash_profile
Configure the. bash_profile File
Vim ~ /. Bash_profile
Then edit in vim as I downloaded the jdk-7u79-macosx-x64 version, so the following names contain "7"
After editing, run wq to save and exit, and then re-execute the. bash_profile file.
Source ~ /. Bash_profile
Finally, let's verify if JDK is successfully installed and environment variables have been configured. For example, if you see the java version output from the terminal, it indicates that the configuration has been successful.