Java Development Environment configuration (under Windows JDK7+TOMCAT7)

Source: Internet
Author: User

Reference Original : http://www.cnblogs.com/goto/archive/2012/11/16/2772683.html

Http://www.cnblogs.com/feilong3540717/archive/2011/10/17/2215610.html

One, install JDK1.7

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Then install it all the way.

Right-click My Computer-Properties-advanced-environment variables-system variables-new-you want to create a new three variable

First variable name: Java_home variable value: C:\Program files\java\jdk1.7.0_67

second variable name: Classpath Variable value: C:\Program Files\java\jdk1.7.0_67\lib\dt.jar; C:\Program Files\java\jdk1.7.0_67\lib\tools.jar;. The following points cannot be dropped

third variable name: value of PATH variable:; c:\program files\java\jdk1.7.0_67 \bin;c:\program files\java\jdk1.7.0_67 \jre\bin before the semicolon cannot be dropped

This is installed on the C drive

If you use the Java_home variable, you can:

java_home=c:\program files\java\jdk1.7.0_67
classpath=.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;(.;must not be less because it represents the current path) 
path=%java_home%\bin; %java_home%\jre\bin


Two, install Tomcat

http://download.csdn.net/download/yagently/3078008


Free-Install version of Tomcat 7.0 configuration (if you extract Tomcat to the C:\Program Files directory, the directory structure is: C:\Program files\apache-tomcat-7.0.11

1. Add environment variables: in My Computer--Properties---Advanced environment variables

2. New system variable, variable name: Catalina_home variable Value: C:\Program files\apache-tomcat-7.0.11 (the directory to which Tomcat extracted).

3. Add%catalina_home%\lib;%catalina_home%\lib\servlet-api.jar;%catalina_home%\lib\jsp-api.jar on the last side of the system variable path Notice the semicolon between them, which must be a semicolon in English.

4, Tomcat 7.0 administrator configuration, enter the C:\Program files\apache-tomcat-7.0.11 (Tomcat directory) under the Conf directory, edit Tomcat-users.xml, find the final:

<!--
<role rolename= "Tomcat"/>
<role rolename= "Role1"/>
<user username= "Tomcat" password= "Tomcat" roles= "Tomcat"/>
<user username= "Both" password= "Tomcat" roles= "Tomcat,role1"/>
<user username= "Role1" password= "Tomcat" roles= "Role1"/>
-

In the above paragraph, add the following:

<role rolename= "Manager-gui"/>
<role rolename= "Admin-gui"/>
<userusername= "admin" password= "admin888"roles= "Admin-gui"/>
<user username= "Tomcat" password= "Tomcat" roles= "Manager-gui"/>

Red is the added part. To this we should know the username and password of the administrator we added is the number of it!

5. Enter the bin directory under the Tomcat directory, double-click Startup.bat to start Tomcat in the Command line window will come out in English prompt.

6, Browser input: http://localhost:8080 can see the Tomcat welcome page that the configuration is successful, click on the upper right corner of the manager connection, enter the above configured user name and password, you can go to the Administration page.


Java Development Environment configuration (under Windows JDK7+TOMCAT7)

Related Article

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.