Java1.8 environment variable Configuration
1: Download The corresponding version of JDK1.8 and Install the installation process can customize the installation directory and other information, such as we choose to install directory: C:\Program files\java\jdk1.8.0
2: When the installation is complete, right click on "My Computer" and click "Properties":
3: Click "Advanced System Settings":
4: In "System Variables", set 3 properties, Java_home,path,classpath (case does not matter), if already exist then click "Edit", do not exist then click "New":
(1). Java_home indicates the JDK installation path, which is the path C:\Program files\java\jdk1.8.0 that was selected at the time of installation,
(2) Add under path:;%java_home%\bin; %java_home%\jre\bin, notice that the front is separated by semicolons,
(3) in the CLASSPATH Item added: .; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar ( to be added . represents the current path ),
1. (5): "Start"->; " Run, type "cmd", type the command "Javac", and the following screen appears, stating that the environment variable is configured successfully.
Java1.8 environment variable Configuration