Java environment variable settings
1. Install the JDK, fool installation,: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2. Open cmd, enter java-version to view installed JDK version
3. Configure Java Environment variables
3.1. Right-click Computer-----> Properties-----> Advanced System settings------> Environment Variables------> System environment variables, click New, variable name: java_home, Variable Value: installation path (e.g. D:\Program files\java\jdk1.8.0_131 http://7881188.cn/);
Click OK!
3.2. Set the path path, in the system environment variable, locate path, double-click on its last input:;%java_home%\bin;%java_home%\jre\bin; (notice with semicolons; separate);
3.3 Set the Class_path path, in the system environment variable, click New, variable name: Class_path, Variable value:.; %java_home%\lib;%java_home%\lib\tools.jar (note the front is.; );
4. Open the cmd input javac, which appears as:
Configuration Complete!
Java environment variable settings