Eclipse configures Tomcat and runs

Source: Internet
Author: User
Tags tomcat server apache tomcat

This article describes eclipse configuration tomcat.
We assume that we have installed the JDK and configured the JDK environment variables.
Then we need to download and install Eclipse and Tomcat:
eclipse:http://www.eclipse.org/downloads/
tomcat:https://tomcat.apache.org/
When writing this blog, the version of Eclipse is the version of Mars.2,tomcat is Tomcat9. You can choose to download Eclipse Installer for installation, because my computer is Win7 64-bit, so tomcat I chose 64-bit Windows zip.
Eclipse installer after the eclipse download, after the installation of the Fool, Tomcat 9 zip package after downloading their own selection of a directory decompression.
Select Window->preferences in Eclipse, enter and select Server->runtime environment on the left, click "Add." On the right, and discover that there is no TOMCAT9 in the Apache directory. The highest only tomcat8, well I do not know how to do, the certification has not studied Tomcat, or the next Tomcat8 bar, and then the last officer network download a tomcat8, and tomcat9 the same process to unzip the large corresponding directory.
Then continue just click on "Add ..." After the behavior, click "Add ..." Then select Apache Tomcat v8.0 below the Apache directory, click Next, and then click Browse to select the tomcat8 corresponding directory.
To run a sample:
You can create a new dynamic Web project under Eclipse and create a new HTML file under the WebContent directory, and Mail click on the project name->run on Server, or click on one of the bug-like buttons above to start the Tomcat server , and then you can see the effect.

Eclipse configures Tomcat and runs

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.