For Java development, first install the JDK, and then configure the environment variables after installing the JDK:
1, download jdk (http://java.sun.com/javase/downloads/index.jsp), I downloaded the version is: Jdk-6u14-windows-i586.exe
2. Installation Jdk-6u14-windows-i586.exe
3. Configure environment variables: Right-click "My Computer"--> "Advanced"--> "Environment variables"
1 A new Java_home variable in the system variable, the value of the variable is: C:\Program files\java\jdk1.6.0_14 (completed according to their own installation path)
2 new CLASSPATH variable, variable value:.; %java_home%\lib;%java_home%\lib\tools.jar
3 Add the variable value in the path variable (existing without new):%java_home%\bin;%java_home%\jre\bin (note that the value of the variable is ";" Separated)
4, "Start"--> "Run"--> input "Javac"--> "enter", if the normal print usage instructions to configure success!
The analysis of supplemental environment variables:
JAVA_HOME:JDK Installation Path
Classpath:java load Classpath, only classes can be recognized by Java commands in Classpath, plus a "." Before the path. Represents the current path.
Path: The system can recognize the JAVA,JAVAC command under any path.