APACHE-TOMCAT-7 installation and Configuration &&JDK configuration

Source: Internet
Author: User
Tags tomcat

Get ready:

1, install the Java JDK

2, download good tomcat: version for apache-tomcat-7.0.52, and extract to the hard drive.

Configuration steps:

1, JDK:

(1) New variable name: java_home, Variable value: C:\Program files\java\jdk1.7.0_25

(2) Open path, add variable value:%java_home%\bin;%java_home%\jre\bin

(3) New variable name: CLASSPATH, Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar

Note:

(1). Represents the current path,%java_home% refers to the java_home specified above;

(2) java_home Specifies the JDK installation path, which includes folders such as Lib,bin,jre, Tomcat,eclipse, and so on, which need to depend on this variable.

(3) path enables the system to identify Java commands under any path.

(4) Classpath is the Java load class (class or Lib) path, and only classes in Classpath can be recognized by Java commands.

2. Configure Tomcat Environment variables

(1) New variable name: catalina_base, variable value: D:\apache-tomcat-7.0.52

(2) New variable name: catalina_home, variable value: D:\apache-tomcat-7.0.52

(3) Open path, add variable value:%catalina_home%\lib;%catalina_home%\bin

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.