Build the Jdk environment and build the jdk Environment
After installing jdk, you must configure the jdk environment variables before they can be used properly. The following describes how to configure jdk environment variables:
1. Right-click computer → properties → advanced system settings → advanced → Environment Variables
2. System variables → new
Variable name: JAVA_HOME
Variable value: (enter the jdk installation directory for the variable value, for example, E: \ Java \ jdk1.7.0)
3. Find the Path variable in the system variable and select Edit
Enter % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin at the end of the variable value;
(Note: If there is no variable value at the end of the original Path, enter the number first, and then enter the above Code)
4. System variables → new
Variable name: CLASSPATH
Variable value:. % JAVA_HOME % \ lib; % JAVA_HOME % \ lib \ tools. jar (note the first one)
The system variables are configured.
5. Check whether jdk configuration is successful: Run cmd and enter java-version (there is a space between java and-version)