Tomcat + Myeclipse2015 installation and configuration, my‑setomcat Configuration

Source: Internet
Author: User

Tomcat + Myeclipse2015 installation and configuration, my‑setomcat Configuration

Download and install tomcat first. You can download tomcat from the official website. The latest version is tomcat 9.0. However, it is usually tomcat or tomcat 8.0 in actual development. Most of them are tomcat, so you can download this version. You can use the default installation path during installation. You can also specify the installation path and configure the environment after installation. The steps are as follows:

 

(1) run the following commands in sequence: "My Computer -----> properties ----> advanced ------> environment variable ---------> system variable. In the displayed dialog box, add the following environment variable: C: \ Program Files \ Apache Software Foundation \ Tomcat 7.0

CATALING_HOME: C: \ Program Files \ Apache Software Foundation \ Tomcat 7.0 CATALING_BASE: C: \ Program Files \ Apache Software Foundation \ Tomcat 7.0 TOMCAT_HOME: C: \ Program Files \ Apache Software Foundation \ Tomcat 7.

0
 
(2) modify the CLASSPATH in the environment variable. append the severlet. jar in the tomcat installation directory to the classpath. Note that you must use a semicolon to separate the previous paths before appending:

CLASSPATH: C: \ Program Files \ Apache Software Foundation \ Tomcat 7.0 \ lib \ servlet. jar

 
 
 
Method 2:

Add the CLASSLING_HOME variable, and then add the bin directory under the installation directory to the Path variable (here, pay attention to the extra points to separate the installation Path ):
CATALING_HOME: C: \ Program Files \ Apache Software Foundation \ Tomcat 7.0

Path: C: \ Program Files \ Apache Software Foundation \ Tomcat 7.0 \ bin

 

The following is the configuration in Myeclipse. I am using Myeclipse2015:

(1) Open Myeclipse2015 and select Window ----> Preference command:

 

 

(2) After selection, a dialog box will pop up: Find Java ------> Install Jre Next to the right, select ADD, and Next by default,

Then finish, return to here, select your Jdk, and then OK.

 

(3) You can still find myeclipse ----> severs -----> Runtime Environment on the right. A table is displayed on the right, and you can still select Add and find tomcat. Here, you will be asked to select the added version, then select the tomcat installation path and jdk version. Note that you must select your jdk here. Then confirm to the end.

Now the configuration is complete. How can I check whether the configuration is correct?

 

Here we start tomcat, as shown below, and then open the browser and enter the URL http: // localhost: 8080/(no need to connect to the internet). If the tomcat webpage appears, the configuration is correct.

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.