Install jdk,jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008 First
Locate the installation directory, and note the D:\Program Files (x86) \java\jdk1.6.0. Depending on the individual installation situation.
1. Go to the "Properties" option of "Computer" and select "Advanced system Settings" as shown in:
2. Select "Environment variables":
3. Click "New":
4, add "Java_home", value is the JDK installation directory.
5, the new "Class_path", the value is:.; %java_home%\bin;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar
Attention:
1), in front of the ".;" Don't forget.
2),%java_home%\bin; This directory is best to add, depending on the personal machine, I did not add the first, run Java is not configured to succeed, so added (perhaps the individual machine is more magical it does not need to add. Most of the internet did not add this).
6. Modify the "path" environment variable and add ";%java_home%\bin;%java_home%\jre\bin" after it. or add "%java_home%\bin;%java_home%\jre\bin;" in front. The difference between a semicolon:
7. Save, Fix, check. Run---->cmd------>javac and Javac-version
1), Input: "Java", you should see the following things:
2), enter "Javac", you should see the following things:
3), enter "Java-version", you should see the following things:
If the above three pictures are seen, congratulations, the environment variable configuration is OK!
Configuring Java environment variables under Win7