Install Tomcat in win7

Source: Internet
Author: User

1. decompress the Tomcat package to D:

2. Set up in win7 advanced environment Configuration
Variable Tomcat

Input PATH value: D: \ apache-Tomcat-6.0.14

3.

Locate the tomcat-user.xml under the tomcat installation directory

In the Tomcat 6.0 \ conf directory

<? XML version = '1. 0' encoding = 'utf-8'?>
<Tomcat-users>
<Role rolename = "Tomcat"/>
<Role rolename = "role1"/>
<Role rolename = "manager"/>
<Role rolename = "admin"/>
<User Username = "admin" Password = "admin" roles = "Admin, Manager"/>
<User Username = "Tomcat" Password = "Tomcat" roles = "Tomcat"/>
<User Username = "role1" Password = "Tomcat" roles = "role1"/>
<User Username = "both" Password = "Tomcat" roles = "tomcat, role1"/>
</Tomcat-users>

 

 

I,JDKInstallation and configuration

1. Download jdk-6u24-windows-i586.exe from the official website

URL: https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start? Productref = jdk-6u24-oth-JPR @ CDS-CDS_Developer

. Select the download path. I downloaded it to F:/JDK,

2. After the download is complete, start to install JDK. Follow the prompts In the Installation Wizard to install JDK. During installation, you can select the installation path. My installation path is F:/JDK.

3. Configure environment variables: Right-click my computer-properties-advanced system settings-environment variables,

 

In "system variables", set three attributes: java_home, path, and classpath (Case Insensitive). If the attributes already exist, click "edit". If the attributes do not exist, click "new ";

 

(1) java_home indicates the JDK installation path, that is, the path F: \ JDK selected during installation. This path contains Lib, bin, JRE, and other folders (it is best to set this variable, because Tomcat and eclipse will all depend on this variable in the future ),

 

 

(2) path allows the system to identify Java commands in any path, set to: % java_home % \ bin; % java_home % \ JRE \ bin,

(3) classpath is the path of the Java loading class (class or Lib). Only the class in classpath can be identified by the Java command and set:

.; % Java_home % \ Lib \ DT. jar; % java_home % \ Lib \ tools. Jar (Add. to indicate the current path ),

 

 

4. Test whether JDK is successfully installed after environment variable configuration.

Click "start"-"run", type "cmd", and enter the Java-version, Java, and javac commands. If the following figure is displayed, the installation is successful:

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.