For Mac novice users or black Apple users
First, open the terminal
Input Java-version
Check if the Java Runtime environment is installed
Show me now that my computer is not installed
If the version number is returned, it indicates that the operating environment was successful
For the old driver of windows, it's clear what to do next.
Then download the JDK for the operating system on the Oracle website and click Agree to download it in the selected version
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download it down
After installing the JDK, you need to configure the environment variables for the JDK, and if you are configuring environment variables for the first time, you can use: Touch. Bash_profile, create a hidden configuration file for. Bash_profile, and if you are compiling a configuration file that already exists, use the open. Bash_ Profile
About finding the path to the JDK installation directory home, many unfamiliar children's shoes may not be found, recommend a convenient way
That is, the command:/usr/libexec/java_home, press ENTER, is the corresponding directory.
And then save the exit
The terminal continues to enter:
source. Bash_profile Make configuration effective
Then enter:
Java-version checks to see if the Java version number is returned, which indicates that the configuration is already in effect.
OK, and then we continue to test the development environment,
Open Terminal
Enter Javac at the command prompt, press ENTER, the system will output the Javac help, if the success of the JDK has been successfully configured, you will need to see whether the above steps have been omitted negligence.
Can.
Fool-type Java Installation environment configuration on Mac