Configuring Tomcat with Eclipse

Source: Internet
Author: User
Tags apache tomcat

  1. Download Tomcat
  2. Open Eclipse, under the menu bar, File--new--other ..., open and locate Web--dynamic Web Project, and then click Next.

    Such as:

  3. Only the next step, the following dialog box appears, the main items are as follows (which is not mentioned in the default, do not modify, as shown in the main configuration):

    Project name : item name, starting with

    Target Runtime: Click on the right "New runtime", select your own server, here we choose: Apache-Apache Tomcat v7.0, select, click "Next", there is an entry: Tomcat Installation directory: Locate the location where you unzipped the TOMCAT7. Then click "Finish".

    Configuration : Click on the right "Modify", can be properly configured, but according to my beginner experience, completely use the default on the line, do not move the inside of things. When used in the configuration, you are already a veteran.

  4. When the above configuration is complete, it appears, click "Next",

    Such as:

  5. Continue to click Next, and then

    Such as:

  6. Next, select by icon, you need to configure Web. XML, hit "hook". Click "Finish".

    Such as:

  7. When the previous configuration is complete, the items "Servers" and "Tomcattest" appear in Project Explorer, such as

  8. Below eclipse there is a servers tag, select New Server Wizard ..., the specific operation here is not a good description, please look directly in the picture shown

  9. When the previous step is complete, a

  10. Here, the configuration is basically complete. You can develop relevant content for testing.

    It should be explained that, at this time, press, double-click the server in the servers label, the relevant configuration appears.

    As shown,

  11. The basic configuration of Tomcat under Eclipse is complete here. Then you need to start the server and test it with the code.

Configuring Tomcat with Eclipse

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.