Use tomcat6.0 to build a JSP website

Source: Internet
Author: User

1. jdk1.6,: http://www.java.net/download/jdk6/6u10/promoted/b32/binaries/jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008.exe

2. Configure Environment Variables

(1) variable name: java_home

Variable value: C:/program files/Java/jdk1.6.0 _ 10

(2) variable name: classpath

Variable value: ..; java_home/lib/dt. jar; java_home/lib/tools. jar;

(3) variable name: Path

Variable value: C:/program files/Java/jdk1.6.0 _ 10/bin (appended at the end)

3. Download tomcat6.0: http://tomcat.apache.org/download-60.cgi

Run startup. bat in the bin directory. The console window cannot be closed.

 

Enter "http: // localhost: 8080" in the address bar to display the default Tomcat page. If not, port conflict occurs.

Change the port mode:

Find server. XML in the Tomcat directory and change the value by 8080.

Put your website in the/webapps/root directory

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.