Window Jdk configuration (win7 / win10 can)

Perform the following configuration in the computer system variables - Right Properties - Advanced System Settings - - scalar environment:

1, New -> Variable name: JAVA_HOME variable value: D: \ Java \ jdk1.6.0_12 (this is just my JDK installation path)

2. Edit -> Variable name: Path in front of the variable value plus:% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin; (semicolon)

3, New -> variable name: CLASSPATH variable value:;% JAVA_HOME% \ lib;% JAVA_HOME% \ lib \ dt.jar;% JAVA_HOME% \ lib \ tools.jar.

 

Then open cmd window, execute java -version jdk version can be seen that the configuration is successful.

Guess you like

Origin www.cnblogs.com/kawhileonardfans/p/10966811.html