Eclipse Configuration Associates Tomcat and runs the project

Source: Internet
Author: User

Tags: ext application Resources Roo MIC Console the option Tomcat path

    1. open Eclipse, click the Window menu, and select Preferences at the bottom.
    2. Click on the "Server" option and select "Runtime Environments" below.
    3. Click "Add" to add Tomcat.
    4. Click "Next" to select the Tomcat path you have installed.

    5. Click "Finish" to finish.

      This time Tomcat has been deployed into eclipse, so what's the whole project going to run? See next step.

    6. First create a Web project
      (file→new→dynamic Web project)
    7. Create a Dynamic Web project
    8. Point Click "Next" Next
    9. Tap "Next" next

    10. Click "Finish" to complete the

      Project was created so that the Tomcat server is displayed on the console, Deploy the Web app to Tomcat, and see the next step.

    11. Add Tomcat to console
      (window→show view→servers)

      If Show View is not Servers, click Other (more), and then look for or search
      li>
    12. Click Link No servers is available. Click ths link to create a new server. , select the Tomcat version in the dialog box that pops up.
    13. Click "Next" to add our items

      (select items and click Add, or double-click to add to the right.) Every new project you create has to be added again
    14. Click Finish to complete the
    15. project that was successfully added to the eclipse Tomcat, and now click Run.

      (post-run access address: localhost:8080)

Note: Web resources must be added under the Webroot directory (root directory).

Eclipse Configuration Associates Tomcat and runs the project

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.

Tags Index: