Configuration of Windows Tomcat and JDK environment variables

Source: Internet
Author: User

Case insensitive, if the same variable name exists, use edit to modify the variable value.
The variable is named Java_home, and the variable value is: C:\JDK (depending on the JDK path you installed, if this is the default, this form C:\Program Files
\java\jdk1.7)
The variable is named Classpath and the value of the variable is.; %java_home%\lib;
The variable is named path and the variable value is%java_home%\bin
Now that you have completed the environment configuration of the JDK, enter the Java-version test in the cmd command line interface to install the

Configuring the Tomcat environment variable
To open the system environment variable, please refer to the third step diagram operation.
Add the following variable in the system variable
1) New Tomcat_home variable
Variable name Tomcat_home
Variable Value C:\tomcat
The value of the variable is the Tomcat decompression path that we downloaded, here my is c:\tomcat, if have doubts, can refer to fifth step.
Windows 7 system installation and configuration Tomcat server environment
2) New Catalina_home variable
Variable name Catalina_home
Variable Value C:\tomcat
Yes, the value of the Catalina_home variable is the same as the value of the Tomcat_home variable.
Windows 7 system installation and configuration Tomcat server environment
3) Modify the variable path
Locate the path variable name in the system variable, double-click or click Edit, and add the following at the end
;%catalina_home%\bin;%catalina_home%\lib
It is important to note that the values of each variable must be separated.
Windows 7 system installation and configuration Tomcat server environment
4) Start the Tomcat server
Enter startup return under CMD Command window, run as shown
Windows 7 system installation and configuration Tomcat server environment
Windows 7 system installation and configuration Tomcat server ring

Configuration of Windows Tomcat and JDK environment variables

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.