1. Open My Computer--Properties--advanced--environment variables
2. New System Variables Java_home and classpath variable name: java_home Variable value: C:\Program files\java\jdk1.7.0 Variable name: CLASSPATH Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
3. Select the environment variable named "path" in "System variables", double-click the variable, add the absolute path of the bin directory in the JDK installation path to the value of the path variable, and delimit the semicolon with the half-width and the existing path. variable name: Path Variable value:%java_home%\bin;%java_home%\jre\bin; This is the Java environment configuration, the configuration is completed directly after the eclipse, it will automatically complete the configuration of the Java environmentNote that the path setting may not be recognized by Javac
Java Environment Configuration