First, download Java
Official address: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html
Java SE Runtime Environment 8 update 114 for Windows JDK6 32/64 latest Java Run environment download: http://www.downcc.com/soft/info/13852.html
Second, install Java
The installation process is recommended to always click Next, because there may be plug-ins or ads, also easy to set up later environment variables.
Third, set environment variables
Win7 's environment variable settings are similar to XP, right click on "Computer"--"properties"--"Advanced system Settings" and then select "Advanced" in System Properties--"Environment variables"
The default Java installation path is C:Program filesjavajdk1.6.0_26
Setting environment variables is the same as XP.
Add Java_home and Classpath two variables and edit path in "System variables"
The Java_home variable value is C:Program filesjavajdk1.6.0_26
The classpath variable value is.; C:Program Filesjavajdk1.6.0_26libdt.jar,c:program Filesjavajdk1.6.0_26libtools.jar (note the first two punctuation marks.; Don't omit it)
Add the following two paths to the last side of the variable value of path; C:Program Filesjavajdk1.6.0_26bin; C:Program Filesjavajdk1.6.0_26jrebin (note preceded by a symbol;)
Set a good environment variable after the basic OK!
Check to see if Java is installed as long as you enter Javac, Java-version, javac in the command prompt, look for the following three commands.