After the JDK is installed successfully, the test is really installed successfully, enter "Java-version" at the command prompt and press ENTER, if the following version information appears:
Java Version "1.6.0_26"
Java (TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot (TM) Client VM (build 20.1-b02, mixed mode, sharing)
Indicates that the JDK has been successfully installed.
Here's how to set up Java environment variables
1. Turn on my Computer--Properties--advanced--environment variables
2. New System variables Java_home and Classpath
Variable name: java_home
Variable Value: C:Program FilesJavajdk1.7.0
Variable name: CLASSPATH
Variable value:.; %java_home%libdt.jar;%java_home%libtools.jar;
3. Select the environment variable named "path" in the system variable, 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 use the semicolon and the existing path to separate
Variable name: Path
Variable value:%java_home%bin;%java_home%jrebin;
Finally, the configuration of the test environment variable is successful, you can enter "Javac" in the Command Line window, carriage return, output Help information is configured correctly.