1. download Java
Official Address: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html
Ii. install Java
We recommend that you keep clicking Next during the installation process, because there may be plug-ins or advertisements, and you can also set environment variables in the future.
3. Set Environment Variables
The environment variable settings for win7 are similar to those for XP. Right-click computer> Properties> advanced system settings and choose advanced> environment variable from system properties]
The default Java installation path is c: \ Program Files \ Java \ jdk1.6.0 _ 26
Set the environment variable to be the same as that of XP.
Add the java_home and classpath variables in the [system variables] and edit the path
Java_home variable value: C: \ Program Files \ Java \ jdk1.6.0 _ 26
The classpath variable value is .; c: \ Program Files \ Java \ jdk1.6.0 _ 26 \ Lib \ DT. jar, c: \ Program Files \ Java \ jdk1.6.0 _ 26 \ Lib \ tools. jar (Pay attention to the first two punctuation marks..;Do not miss out)
Add the following two paths at the end of the variable value of path; C: \ Program Files \ Java \ jdk1.6.0 _ 26 \ bin; C: \ Program Files \ Java \ jdk1.6.0 _ 26 \ JRE \ bin(Note that there is a symbol above;)
After the environment variables are set, they are basically OK!
Check whether Java is installed. You only need to input the javac, Java-version, and javac commands in the command prompt to check whether the following results are correct.
To install Java in XP, refer: Http://blog.sina.com.cn/s/blog_67493dad0100tah5.html
Java is installed on 32-bit 64-bit win7, and Java environment variable settings in win7