The Java environment variables are now set as follows:
1. Open My Computer –> Properties –> Advanced –> Environment variables
2. New System Variables java_home and CLASSPATH
Variable name:java_home
Variable value:d:\Java\java\jdk1.6.0_45 (Note: Do not add "\" at the end of the physical path)
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;
"One is the" compiler "address, and one is the" virtual machine "Address"
This is the Java environment configuration, the configuration is completed directly after the eclipse, it will automatically complete the configuration of the Java environment
Note: If you are just running a compiled JAVA program, you only need to configure Java_home and Path .
Attached: JDK, JRE, JVM differences
Windows under Java environment variable settings