HelloWorld series (a) - taught you how to do JDK environment variable configuration

Points to download, configure, verify, three steps explain how JDK environment variable configuration.

Step 1: First Look after successful configuration effect
Step 2: Download and extract to E: \ JDK
Step 3: The environment variable configuration
Step 4: Under Win10 environment variable Path Configuration
Step 5: Verify that the configuration is successful
Step 6: Practice - environment variables configuration
step 7: The answer - environment variable configuration
Step 1: First look at the effect after successful configuration
WIN key point -> Run (or use win + r)
enter cmd
enter java -version Note: -version lowercase, not capitalized, java followed by a space

after the configuration is successful, there will be the version information java version "1.8.0_65 "

Note: this is the effect after the configuration is complete, the configuration is complete before you can not see this effect
First look at the effect after successful configuration
Step 2: Download and extract to E: \ JDK
First, download the download area (click to enter) the jdk.rar, and unzip it.
The correct directory is E: \ JDK
not copied to the e: \ jdk \ jdk this catalog went to
pay attention to the directory structure
Download and extract to E: \ JDK
Step 3: Configuration Environment Variables
Right My Computer -> Properties -> Advanced -> Environment Variables -> System Variables
Note: The following is the system variables, not user variables above
the new variable name JAVA_HOME, variable value E: \ JDK
modify variables Path, plus on top the% JAVA_HOME% \ bin;
Note: "Path" is the first letter capitalized, do not change back "PATH" bin have a semicolon;
Note: the above system variable user variable, do not have these two, if there should be removed in order to avoid interference.
Note: Win10 PATH configurations vary according to the configuration to the next step: under Win10 environment variable Path configuration
Environment variable configuration
Step 4: Win10 environment variable Path Configuration
As shown, a new, can be placed on top
Configuration environment variable Path under Win10
Step 5: Verify that the configuration is successful
Just click OK to close the configuration page, this step must be done, otherwise it just does not take effect

point WIN button -> Run (or use win + r)
enter cmd
enter java -version
If the version message appears indicating that the configuration is successful
if it fails , and adjust the front configuration, and then to restart the cmd command, rather than the original input cmd inside java -version
Verify that the configuration is successful

More, CLICK HERE

Guess you like

Origin www.cnblogs.com/Lanht/p/12411705.html