Configuring Java Environment variables
The most basic configuration, not to speak, go straight to the beginning
Basic Flow:
(1) Download the Java JDK (Java SE Development Kit), which can be downloaded directly from the website.
(2) Configuring environment variables: java_home, Path,classpath
(3) Verify the configuration is successful
One. Download JDK
Download on the official website not much to say, direct:
Two. Configure Environment variables
(1) Where to find the configuration
My Computer, right-click Properties--Advanced system settings--environment variables--System variables
(2) configuration
It is recommended to use system variables. If the system has this variable name, click Edit, No, click New.
1) java_home
Is your JDK storage address.
2) Path
In the front, write these two sentences.
3) CLASSPATH
Note: The most forward to be enclosed in parentheses (,; ) This
Then after 2 clicks to confirm, even if the basic configuration is OK.
Three. Verification
Open command line interface (CMD), input: Java and Javac, if the effect of Figure 3-1, 3-2, then the configuration is successful. Congratulations to you!
Figure 3-1
Figure 3-2
If prompted:Javac is not a command that can be run, it means that there is an error in your three path, and you need to check it again. Note: I am currently using the WIN10, while the WIN10 in the environment variable configuration has a place different from the previous. If there are multiple paths under a variable, the path is displayed in this way () without expanding the look:
After opening:
It may seem clearer, but it's easy to create a detail error--There's no way to confirm that the end of the statement has a semicolon (;). Click "Edit Text" to see
There is a semicolon at the end. In the environment variable configuration, in the case of multiple paths, is a semicolon as a separator number, but the last statement does not need a semicolon also can not have, if more of this semicolon, will lead to the configuration process, there are some unnecessary trouble!! (Blood lessons, be sure to note)
Configuring Java Environment variables