Tool: Jdk+tomcat
Steps:
1. Install Java JDK: The path name is as free as possible during installation, and the installed display JDK and JRE prove that there is no error during installation.
2. Configure the JDK environment variables:
(1) Right-click My Computer-Properties-Advanced system settings
(2) Advanced system Settings-advanced-environment variables
(3) Create a new java_home variable in the system variable, the value of the variable: C:\Java\jdk1.7.0_80 (according to their actual path)
(4) Create a new CLASSPATH variable in the system variable, the value of the variable:.; %java_home%\lib;%java_home%\lib\tools.jar
(5) Modify the path variable, the value of the variable, add the variable value:%java_home%\bin;%java_home%\jre\bin (note the value of the variable with ";" Separated
3. Check the configuration:
(1) Start-Enter the cmd command in the Run box and java-version to view the Java version in the Command box.
(2) Enter Javac, check the return results, if you can return all the following results indicate that the configuration is successful.
Java Environment variables