Eclipse+tomcat Web Development Configuration

Source: Internet
Author: User
Tags apache tomcat

Keyword: jdk,web,eclipse,tomcat

Os:windows 8.1 with Update

1. Download the installation jdk:http://www.oracle.com/technetwork/java/javase/downloads/index.html.

Set Environment variables:

Java_home:c:\program Files\java\jdk1.8.0_11

2. Download the installation tomcat:http://tomcat.apache.org/. For example 7.x version: Http://mirrors.hust.edu.cn/apache/tomcat/tomcat-7/v7.0.55/bin/apache-tomcat-7.0.55-windows-x64.zip.

After download, extract to: C:\apache-tomcat-7.0.55.

Set Environment variables:

catalina_home:c:\apache-tomcat-7.0.55

3. Run C:\apache-tomcat-7.0.55\bin\startup.bat and start Tomcat.

The boot success interface is as follows:

Open http://localhost:8080/. You will see the Tomcat home page.

4. Download Eclipse IDE for JAVA EE developers:http://www.eclipse.org/downloads/

No need to install unzip to c:\eclipse after download.

Run Eclipse.exe to start.

5. Download Tomcatplugin:http://www.eclipsetotale.com/tomcatplugin.html#a3

After downloading, unzip the Com.sysdeo.eclipse.tomcat_3.3.1.jar to C:\eclipse\plugins.

6. Configure Eclipse

Restart Eclipse.

You can add, remove, and set the JRE in Window-prefereces-java-installed JREs.

Select "Version 7.x" in Window-prefereces-tomcat and set Tomcat home to C:\apache-tomcat-7.0.55.

In Window-prefereces-tomcat-advance, set the Tomcat base to C:\apache-tomcat-7.0.55.

In Window-prefereces-server-runtime enviroments, add Apache Tomcat v7.0.

7. Create a web App

Select File-new-dynamic Web Project, give a project name, such as "MyWeb0", other reserved defaults, click Finish.

In Project Explorer, right-click on "WebContent" and new JSP file named Index.jsp.

8. Publish Run web App

Right-click on the project and select Run As-run on Server.

Eclipse+tomcat Web Development Configuration

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.