Get ready:
1, install the Java JDK
2, download good tomcat: version for apache-tomcat-7.0.52, and extract to the hard drive.
Configuration steps:
1, JDK:
(1) New variable name: java_home, Variable value: C:\Program files\java\jdk1.7.0_25
(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:
(1). Represents the current path,%java_home% refers to the java_home specified above;
(2) java_home Specifies the JDK installation path, which includes folders such as Lib,bin,jre, Tomcat,eclipse, and so on, which need to depend on this variable.
(3) path enables the system to identify Java commands under any path.
(4) Classpath is the Java load class (class or Lib) path, and only classes in Classpath can be recognized by Java commands.
2. Configure Tomcat Environment variables
(1) New variable name: catalina_base, variable value: D:\apache-tomcat-7.0.52
(2) New variable name: catalina_home, variable value: D:\apache-tomcat-7.0.52
(3) Open path, add variable value:%catalina_home%\lib;%catalina_home%\bin