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.