Java Development Environment configuration (under Windows JDK7+TOMCAT7)

Source: Internet
Author: User

References : 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

Assuming that the java_home variable is used, it can be:

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 folder, the folder 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 folder that Tomcat extracted to).

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

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

<!--
<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 for the join section. To this we should know how many of the username and password of the administrators we are joining!

5. Go to the Bin folder under the Tomcat folder, double-click Startup.bat to start Tomcat in the command-line window to realize the English hint.

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 username and password, you can enter the management 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.