About the environment variable configuration, there are many tutorials on Baidu, but for me to complete this step is really not simple, so decided to share the configuration method here.
1. Install the JDK/JRE.
official website has installation files, carefully, you can install the success, you can customize the installation path, but pay attention to installation time can not have Chinese path, otherwise will error.
2. Open this computer and select Properties.
3. Select Advanced System Settings.
4. Select the environment variable.
5. Operating in the system variables bar
Select New variable, create Java_home and classpath two variable names
ClassPath corresponds to the input variable value.; %java_home%\bin;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar
Java_home corresponds to D:\Program files\java\jdk1.8.0_171 (this file address can be obtained by browsing the directory).
Finally, the existing system variable path is edited
Enter the%java_home%\bin and%java_home%\jre\bin directly after the edit box point is created.
6. Inspection
Win+r open Run, type cmd, confirm open.
Open and enter Javac and java-version if the interface that appears indicates that the configuration was successful.
Complete!!
About WIN10 Eclipse How to configure environment variables