Eclipse 4.2 + Tomcat 7.x + JDK 7 build a Java Web Development Environment

Source: Internet
Author: User

1. Prepare tools

  • Eclipse 4.2 (to the official website download: http://www.eclipse.org/downloads/ to download Eclipse IDE for Java EE developers
  • Tomcat 7.x (Tomcat on my machine comes with XAMPP)
  • JDK 7

2. Eclipse 4.2 Configuration

Similarly, open the menu window-> preferences and expand server-> runtime environment. Then add a tomcat. Operation:

3. Create a test project

Create a new JSP file named index. jsp in the webcontent folder.

Edit index. jsp and enter some words or HTML code in <body> </body>.

4. Project deployment and Testing

In the following servers column, click New server wizard

Right-click Tomcat v7.0 server at localhost and click Add and remove to deploy the project.

Select helloworld and click Add to add the project to the server.

Start the server

 

 

Open your browser and enter localhost: 8080/helloworld in the address bar to test

 
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.