How to install and configure Tomcat in Win7 system environment?

  
                

Tomcat is a very easy to use open source and free java web server, a project launched by the Apache Software Foundation. However, the installation and configuration of Tomcat is a bit complicated, many users can not operate correctly, this article will give you a detailed description of the detailed process of Tomcat installation and configuration.

java environment configuration

1, configured java environment should have learned of it, here simply to talk about.

Download and install the java JDK, pay attention to the installation path, we need to configure the environment variables.

2, after the installation is complete, configure the environment variables;

configuration environment variables here to Win7 Example: Right-click the computer & mdash; & mdash; attribute & mdash; & mdash; Advanced System Settings.


3, click the following environment variables, variables in the system after entering a bar click New, and then enter the following:

Name: JAVA_HOME

Variables value: just install path


4, at the top of a column click New, reads as follows:

name: CLASS_PATH

variable value: .;%JAVA_HOME%\\lib;%JAVA_HOME%\\lib\\tools.jar (Note: there is a small dot in front)

It is important to note that all symbols are in English.

5, there is a system environment variable path environment variables, select Edit When selected, added to it to set the JAVA_HOME as: add the final;% JAVA_HOME% \\ bin; < Br>

6, test the java environment is configured successfully

Press Win+R, enter cmd to call up the command control window. Enter: java -version to see if the version is displayed.


installation configuration Tomcat

1, download Tomcat file (click to enter the official website), the file is an exe file to install, and can be installed directly after downloading.

2, pay attention to the installation directory when installing the same, because one would have to configure and java as environment variables. Also open the configuration window for the environment variable and click New in the System Environment Variables column.

3, enter as follows:

variable name: CATALINA_HOME

Variable values: the path just installed

4, arranged to test whether the installation Success

Locate the bin folder under the Diablo path, find the executable file inside, run it, and then do the following.

Open your browser and type http://localhost:8080. If the following instructions are successful.



Eclipse configuration

1, download the latest version of Eclipse, unpacked, you do not need to install.

2, run the Eclipse program file, open the Eclipse work interface.

Select window——preferences from the menu bar.


3, select the left side of the server & mdash; & mdash; runtime environment & mdash; & mdash; in the pop-up window, select add & mdash; & mdash; you can then select the version of Tomcat.


4, select Tomcat path and java version to complete the configuration.

The above is the installation of Tomcat, and also explains how to configure the environment variable, because the process is more complicated operation, so users must pay extra attention when mounting configuration, as long as the operation would be the wrong step Causes the installation to fail.

Copyright © Windows knowledge All Rights Reserved