Add system variables:
(1) New -> variable name " JAVA_HOME ", variable value " C:\Java\jdk1.8.0_05 " (ie JDK installation path)
(2) Edit -> variable name " Path ", at the end of the original variable value Add " ; %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin "
(3) New -> variable name " CLASSPATH ", variable value " .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar ;%JAVA_HOME%\lib\tools.jar ”
Check if the configuration is successful
Enter the java, javac, java -version commands on the console respectively , and the JDK compiler information, including the syntax and parameter options of the modification command, is displayed, indicating success.