1. Download of JDK
So far, the latest version of the JDK is jdk8,http://www.oracle.com/technetwork/java/javase/downloads/index.html
To download here
Currently I am using Win7 64-bit operating system, so download this connection as follows:
2. Installation of JDK 8
When installing, the dialog will let you install the JDK first, I choose E:\JAVA\JDK8
Once this is installed, you will be asked to select a target folder to install the JRE,
It is important to note that the previous JDK cannot be installed in a directory, or the environment variable will not be set successfully!
3. Setting Environment variables
First add a system variable (user variable also can), Java_home, variable value: is the installed directory
In the environment variable, locate the path variable, which is added above:%java_home%\bin;
Add another classpath, variable value:.; E:\Java\jdk8\lib\tools.jar; E:\Java\jdk8\lib\dt.jar
Note the preceding .;
After setting the success, open cmd, input javac, there is a hint is successful, or not succeed, you can refer to Baidu Search "JDK8 environment variable Configuration"
Java Learning Lesson One, installing the JDK Toolkit