Java environment variable configuration:
Operating system: WIN10;
JDK Version: 1.8
1. Install the JDK and customize the installation directory.
2. Set environment variables. In the system variable, set the Java_home,path,classpath three item.
JAVA_HOME Specifies the installation path for the JDK, which includes folders such as LIB,BIN,JRE (set this variable well, because you need to rely on this variable when running tomcat,eclipse, etc.).
path allows the system to identify Java commands under any path, set to: %java_home%\bin;%java_home%\jre\bin
Classpath is the Java load class or Lib path, set to: .; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar (. = Current path)
%java_home% refers to referring to the previously specified java_home
3. After the configuration is complete win+r, enter CMD to open the DOS black window, enter command "Java-version", "Java", "Javac" three commands to test whether the environment variable is configured successfully.
Java environment variable Configuration