Configuration of Tomcat in Windows (includes JDK configuration)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.