As a result of today's computer reload system (WIN10 Professional Edition), all the environment configuration is gone, so easy to take a look at this although it's simple but there are parts and I like the small white even configure a JDK environment can be wrong (have encountered before, is based on some of the tutorials in Baidu configuration environment variables Ah, How can it still appear without configuration success? Next I will build a JDK environment with you, God please pass by, think this tutorial can also, can use on the Please collection for later use, good nonsense not much to say, now start to get to the point:
Preparation Tool: jdk8u161 Development tools: Eclipse
- To the Oracle official website download JDK version, now Jdk10 has come out, because the latest version is prone to compatibility issues, so we choose jdk8u161 please follow the STEP.1;STEP.2 step operation, my system is 64 bit so I choose x64, if you are 32-bit system, Please select x86, depending on your system selection. Below are two installation files according to their own needs of one of the next, we use the Figure 2 Zip (free installation version) for demonstration today
Figure 1 is an EXE executable file that needs to be manually installed
Figure 2 is a zip compressed file, free installation, directly unzip it to the installation directory can be
- After the download is finished, unzip it to your file directory (custom directory), the directory name can not contain Chinese, please use English, to avoid the following will not find the path of this error.
STEP01 unzip the downloaded compressed zip file into the specified directory (note: The extracted directory cannot have Chinese)
- After the decompression installation is complete, the environment variables are formally configured:
Step01 computer → properties → advanced system settings → advanced → environment variables
STEP02: System variable → new java_home variable value fill in the JDK installation directory (I am C:\Program Files (x86) \java\jdk1.8.0_162)
STEP03: System variable → find Path variable → edit at the end of the variable value input%java_home%\bin;%java_home%\jre\bin, (note that the original Path of the variable value at the end there is no; number, if not, first enter; number and then enter the above code)
STEP04 system variable → new CLASSPATH variable
Variable values are filled in.; %java_home%\lib;%java_home%\lib\tools.jar (Note that there is a point in the front)
Step 05 configuration Complete to begin detection of configuration success
Open the Command Window win+r---> Input cmd Enter, enter java-version in the command window
Java environment variable configuration (jdk1.8)