Tomcat environment variable

Source: Internet
Author: User

tag: HTTP Java OS art management Div

1. Configure 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 and add the variable value: % catalina_home % \ Lib; % catalina_home % \ bin. There are two ways to start the Tomcat service: 1. Method 1: Enter the command under the CMD command: startup. The following dialog box is displayed, indicating that the service is successfully started. 2. Method 2: Right-click "my computer" on the desktop-> "manage"-> "services and applications"-> "services" and find the "Apache Tomcat" service, right-click the service, select "properties", and change "Startup Type" from "Manual" to "automatic ". 3. Test tomcat. Open the browser and enter http: // localhost: 8080 in the address bar. If you see a JSP page that comes with tomcat, your JDK and tomcat have been set up successfully. Note: 1. The path in java_home cannot end with a semicolon, for example, c: \ Program Files \ Java \ jdk1.7.0. 2. The path in catalina_base, catalina_home, and tomcat_home cannot end. 3. The java_home path must not be written as the JRE path. 4. When modifying or adding a variable to an environment variable, be sure to check whether there are extra letters, including semicolons and spaces. The author simply adds a letter to the path, and the configuration fails. If the configuration fails, check it repeatedly. The above error is very prone to errors: catalina_home or java_home is not configured properly. If the error message "The catalina_home environment variable is not defined correctly" appears"

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.