How to configure Tomcat under Eclipse

Source: Internet
Author: User
Tags apache tomcat

Transfer from http://jingyan.baidu.com/article/ca2d939dd90183eb6d31ce79.html Tools/raw materials
    • Operating system: Windows 7 64-bit

    • Development tool: Eclipse-jee-juno-sr2-win32-x86_64 (please download it by yourself)

    • Using the server: apache-tomcat-7.0.35-windows-x64 (please download it on your own website)

Configuration steps
  1. 1

    TOMCAT7 is green software, after decompression can be used, please first extract Tomcat to the appropriate location (the whole path is suggested to be English path),

    Such as:

  2. 2

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

    Such as:

  3. 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. 4

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

    Such as:

  5. 5

    Continue to click Next, and then

    Such as:

  6. 6

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

    Such as:

  7. 7

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

  8. 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. 9

    When the previous step is complete, a

  10. 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. 11

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

    END

Precautions
    •   This article is intended to show you how to configure Tomcat under Eclipse, and for some of the issues that may arise, please see my other experience, which lists some common questions: http://jingyan.baidu.com/article/ ab69b270ccc4792ca7189fd6.html

    •   Because the steps are cumbersome, some steps if you do not see , please leave a message, I will explain in detail.

    •   If this article is helpful to you, you can vote to support it, and we appreciate it.

    •                  -----------idea_wj    Reprint Please specify the author's pseudonym, Thank you          August 24, 2013

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.