Tomcat7.0 installation and configuration & Configuring tomcat7.0 on Eclipse and creating a project release

Source: Internet
Author: User
Tags apache tomcat

Installation and configuration of Tomcat7.0

1.

Verify that the JDK is installed and configured successfully

Shortcut key--win+r: Enter cmd, open command prompt

Input java-version, carriage return

Input javac-version, carriage return

If the following information appears, installation and configuration is successful.

2. At this point, Tomcat can be installed. After downloading the compressed package, extract directly to a directory, the directory can not contain Chinese. After decompression, the following is shown:

3.

Next you start to configure the environment variables.

Then create a new three system variable:

Tomcat_home=d:\java\tomcat\tomcat 7.0

Catalina_home=d:\java\tomcat\tomcat 7.0

Catalina_base=d:\java\tomcat\tomcat 7.0

4.

The final addition of%tomcat_home%\lib\servlet-api.jar in Classpath;

Add%catalina_home%\bin to the top of the path;

Note: The front and back order does not affect 5.

At this point, the configuration work is complete. Open the Bin folder and double-click Startup.bat

It automatically opens the following console interface.

Do not close the console interface, open the browser, enter http://localhost:8080

A Tomcat Web page appears, proving the installation and configuration succeeded.

Close the console, close the console, and turn off the Tomcat service


Configure tomcat7.0 on Eclipse and create a project release

1. Open Eclipse: Install JDK1.7 before opening, because Eclipse requires JDK.

2. Find ' Preferences ' under ' Window ', click ' Preferences '.

3. Find ' Preferences ' and find the server---rntime evironment

4. Click ' Add ' to add a new running environment.

5. Select ' Apache Tomcat 7 ' and click ' Next '

6. Select the JRE running environment, choose jre7 here

7. Click ' Finish ' to see the added success

8. Now to create a Web engineering test: Create a Dynamic Web project

9.

Enter project name: Test

Select Web Server:tomcat&

Select Servlet version: servlet3.0

Click ' Finish ' to finish

10. View the Project
11.

Create a index.jsp file under engineering webcontent:

Click ' Finish ' to create a complete

12. Open JSP file: Enter

13.

Save content, select Index.jsp, right-click to select Run as in the Select ' Run to Server ' last click ' Finish '
14. Start the server and display the page effect


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.