Ii. Tomcat configuration and idea running the first JSP project--javaweb drip

Source: Internet
Author: User
Tags tomcat server

One, tomcat configuration environment variables

Tomcat download the latest from the official website, I downloaded the installation version. You will need to set the user name and password during the installation process and select the appropriate JDK installation directory. These are simple and straightforward next steps, and after the installation is complete, you configure Tomcat's environment variables.

The reason for configuring environment variables is the same as configuring the JDK environment variables in Java to be able to find the relevant tools and libraries for Tomcat. The specific need to configure the following environment variables, I directly write a batch script, run in the command-line tool.

Set Catalina_base=d:\tomcat 9.0
Set Catalina_home=d:\tomcat 9.0
Set path=%catalina_home%\lib;%catalina_home%\bin;%path%

After configuring the environment variables, start the Tomcat server. Then enter in the browser address bar: http://localhost:8080/can go to Tomcat's official web page to indicate that the Tomcat configuration was successful.

Second, the first JSP program

The development tool I use is idea, after creating the good one Javaweb project, you need to integrate Tomcat into idea and then run the program to see the corresponding page in the browser. The key needs to be configured in 2 places.

After configuring the 2 places above, you can run the project directly.

Ii. Tomcat configuration and idea running the first JSP project--javaweb drip

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.