Configuring Java environment variables under Win7
First of all, you should have installed the Java JDK, the author installed is:jdk-7u7-windows-x64
Next the main talk about how to configure the environment variables of Java, but also for the next day I forgot to make a backup
1. Go to the " Properties" option of "Computer" and Select " Advanced system Settings" as shown in:
2. When you click on " Advanced system Settings", you will see the dialog box as shown, select " environment variables":
3. After clicking on " environment variable", you will see the dialog box as shown:
4, the next step is the specific configuration process:
①, select " new" as shown,
" variable name":java_home
"Variable Value ":C:\Program files\java\jdk1.7.0_07
Note: the " variable Value" column mainly fills in the path where you install Java, which may vary depending on the individual situation
②, after the previous step, select "Path" in the environment variable, as shown in:
edit after selection:
At the top of the "Variable Value" column, add the following code:
%java_home%\bin;%java_home%\jre\bin;
Note: The above code is best for one character, because Java_home has limited the path to your JDK, and each version of Java JDK should be made up of these things.
③, after the previous step is determined, then " new":
" variable name":ClassPath
" Variable Value":.; %java_home%\bin;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar
Note: The above code is best also a character unchanged paste up, " variable Value" in front of the first . Don't miss out.
After completing the three steps above, the configuration of the environment variable has been completed.
5, check the environment variables set up: Call "cmd" Check
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!
6. Why should I configure the environment variables for Java?
Please move this blog, although it is about Linux, but Windows is the same truth
Java Environment variables