Installation and configuration environment for Java environment: JAVA8,WIN10
Recommended Oracle official website https://www.oracle.com/index.html download JDK for installation
Choose the version you want to download
3. Open the installation package and complete the installation
Open My Computer--Properties--Advanced system settings-environment variables
New Modify Environment
Variable name: PATH
Variable Value: C:\Program files\java\jdk1.8.0_111\bin (the bin directory path for JDK installation)
Variable name: java_home
Variable Value: C:\Program files\java\jdk1.8.0_111 (JDK installation path)
Variable name: CLASSPATH
Variable value:.; (Java1.6 will be done directly after this configuration)
Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar (Java1.6 with previous configuration)
Open the command line and run Javac directly
Installation and configuration of the Java environment