1. Download JDK
Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
2, after the download next installation, the final step requires you to install the JRE, can be canceled, because the previous installation has been completed.
3. Configure environment variables: Right-click "My Computer"-"advanced"-"Environment variables"
1) Create a new "java_home" variable in the system variable, the value of the variable is: C:\Program files\java\jdk1.6.0_14 (fill in according to your own installation path)
2) New "classpath" variable, the value of the variable is:.; %java_home%\lib;%java_home%\lib\tools.jar
3) Add variable value in Path variable (existing without new):%java_home%\bin;%java_home%\jre\bin
(Note that the variable values are used ";" Separated
4. "Start"-"Run"-enter "Javac" and "enter", if you can print the usage instructions correctly, the configuration is successful!
Analysis of supplemental environment variables:
Installation path for JAVA_HOME:JDK
Classpath:java load Classpath, only the class is recognized by the Java command in Classpath, and a "." is added before the path. Represents the current path.
Path: The Java,javac command can be recognized by the system under any path.
Configuring the Java Environment