1. Configure the Java environment variables:
(1) New variable name: java_home, Variable value: C:\Program files\java\jdk1.7.0
(2) Open path, add variable value:%java_home%\bin;%java_home%\jre\bin
(3) New variable name: CLASSPATH, Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar
Note:
Represents the current path,%java_home% refers to the Java_home specified earlier
Java_home indicates that the JDK installation path, Tomcat,eclipse, and so on need to rely on this variable
Path allows the system to identify Java commands under any path
Classpath is the Java load class or lib path, only the class is in Classpath, and the Java command recognizes
2. Configure the Tomcat environment variable:
(1) New variable name: catalina_base, variable value: C:\tomcat
(2) New variable name: catalina_home, variable value: C:\tomcat
(3) Open path, add variable value:%catalina_home%\lib;%catalina_home%\bin
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Summary of various configuration environment variables