JDK environment configuration

 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.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326393124&siteId=291194637