1, configuring Environment variables
My Computer, right-click on the computer icon, tap "Properties"
Click "Advanced System Settings"
Click on "Environment variables"
"System Variables" column, click "New"
Popup input "variable name", "Variable Value" window
"Variable name" input "Java_home"
"Variable value" input "D:\Program files\java\jdk1.6.0"
Click "OK"
Then find the variable named "Path" in the "System Variables" column
Click "Edit"
will be "%java_home%\bin;" To the end of its "variable value", note that if the end is not ";" Symbols must be added with
Click "OK"
Then click "New" in the "System Variables" column.
"Variable name" enter "Classpath", "Variable Value" input ".; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar ", note the preceding".; " Symbols must not be omitted
Click "OK"
Then click "OK" in the "System Properties" window.
Test whether the configuration was successful
Press Windows window key to add "R" key, open "Run" window, enter "CMD" to open DOS window
Enter the command "Javac" and return to confirm
A long list of messages pops up to indicate that the configuration is complete, or the system prompts the error message
1 environment variable configuration steps
Build up Java Environment