The role and setting of Java environment variables

                            The role and setting of Java environment variables

                     Java environment variables are set with three JAVA_HOME, PATH and CLASSPATH, JAVA_HOME is the installation path of jdk, PATH enables the system to recognize java commands in any path, CLASSPATH is the path of Java loading classes, only the class is in the CLASSPATH, the java command can be recognized it.

PATH设置:%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

CLASSPATH设置: .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar

Guess you like

Origin blog.csdn.net/skateboard1/article/details/44262371