环境变量设置

时间:2022-12-12 09:46:22

1.java
(1)新建->变量名"JAVA_HOME",变量值"C:\Java\jdk1.8.0_05"(即JDK的安装路径)
(2)编辑->变量名"Path",在原变量值的最后面加上“;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin”
(3)新建->变量名“CLASSPATH”,变量值“.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar”
2.maven
(1)新建->变量名"MAVEN_HOME",变量值"C:\Work\apache-maven-3.3.9"
(2)编辑->变量名"Path",在原变量值的最后面加上“;%MAVEN_HOME%\bin;”
3.tomcat
(1)新建变量名:CATALINA_BASE,变量值:C:\tomcat
(2)新建变量名:CATALINA_HOME,变量值:C:\tomcat
(3)打开PATH,添加变量值:%CATALINA_HOME%\lib;%CATALINA_HOME%\bin