Eclipse Configuration Tomcat

Source: Internet
Author: User
Tags tomcat server

Eclipse official website Download: http://www.eclipse.org/downloads/

Tomcat Download: http://tomcat.apache.org/

After the eclipse compression package is unpacked, Tomcat needs to configure the environment variable

Configuring the Tomcat environment variable

On the desktop: Computer Right-click Properties--in advanced environment settings--environment variables--New in system variables--

Variable name: catalina_home, Variable Value fill: The location of your Tomcat decompression (mine is E:\javaProject\apache-tomcat-8.5.20)

Double-click the Startup.bat file in the bin directory to open the Tomcat server, enter http://localhost:8080/or http://127.0.0.1:8080/in the address bar You can access it, display the Apache home page, close the server in the Bin directory by double-clicking Shutdown.bat.

Eclipse Configuration Tomcat

Open Eclipse, click windows-->preferences-->java-->installed JREs Select your JDK installation directory

Next Configure Tomcat

Select Server

Choose Tomcat location and JDK version

Finally, create a new dynamic WEB project test

New. JSP in WebContent

Right-click the project and select Run as----run on Server

And then you can access it.

If you want to deploy another project, you can right-click the server and add

Click on the item and add it in the past.

Eclipse Configuration Tomcat

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.