Java environment variable configuration under Windows

There are three main environment variables used by JAVA under Windows, JAVA_HOME, CLASSPATH, PATH.

1.JAVA_HOME:

1
C:\Program Files\Java\jdk1.7.0_60

2.CLASSPATH:

1
.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar

3.Path: 

1
;%JAVA_HOME%\bin;%PATH%  

4.cmd test:

1
2
3
java
java -version
javac

Enter the following command to run normally, the environment variable configuration is successful


http://www.codeblogbt.com/archives/39560

Guess you like

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