1 First is JDK (note whether the version is 32-bit or 64-bit)
1.1 Install the JDK, install directory recommended for the D packing directory, "D:\", respectively, the JDK and JRE installed in their own identifiable folder "D:\java\ and D:\jre\"
1.2 Computer Properties Advanced system settings environment variable settings:
New variable: Java_home value: The corresponding JAVA installation path, such as: D:\java, remember: do not need a semicolon ";"
New variable: Class_path value: ".; %java_home%\lib;%java_home%\lib\tools.jar "
Modify Variable: Path value: Add "%java_home%\bin;%java_home%\jre\bin after Path", note: path in path and this path need semicolon ";" separated
1.3 Verify success: Console "cmd" input "java" or "Javac" has related hints indicating that the installation was successful;
2 Install tomcat (download the unpacking package directly on the official website, note the version)-There are many ways to do it online, so use the way you are using it now
2.1 Extract to the appropriate disk directory, such as "D:\"
2.2 Computer Properties Advanced system settings environment variable settings:
New variable: Catalina_base value: Tomcat installation directory
New variable: Catalina_home value: Tomcat installation directory
Modify the Path value: "%catalina_home%\lib;%catalina_home%\bin", with a semicolon between the previous address ";"
2.3 Find the "Startup.bat" file under the Tomcat directory LIB, double-click to run Tomcat
2.4 Verify: The default port is 8080, webapps new file plus xxx, the folder in the new file SS, the content is HH, open Tomcat, then enter "http://Native Ip:8080/xxx/ss" in the browser address bar to display "HH", Proof to be used;
Reminder: In addition to configuring the Tomcat and JRE file locations for use in eclipse, and the need to import Tomcat jar packages when running the project, the project name right-click Config BuildPath "Libraries" ADD Library "Server Runtime "Next select the appropriate version.
Configuration of Tomcat in Windows (includes JDK configuration)