To configure a JSP interactive Web site

Source: Internet
Author: User
Tags microsoft sql server sql server driver mssqlserver sql variable tomcat
js| interaction

Network operating system:windows2000server,JSP server:Tomcat5.0, database:sqlserver2k,JAVA Virtual machine:JDK1.4

Step One:

Install JDK1.4(directory:C:\JDK1.4)

Step Two:

Install sqlserver2k. (default directory)

Step Three:

Install Tomcat5.0. This server is bundled with the Web server Apache , eliminating the hassle of manual bundling.

(Table of Contents:C:\tomcat)

Step Four:

Install Microsoft SQL Server Driver for JDBC. ( default directory )

Step Five:

System environment variable settings:

In the Administrators user variable:

1. new classpath variable,

Variable value:C:\jdk1.4\bin\tools.jar;c:\jdk1.4\lib\dt.jar; C:\Program Files\Microsoft SQL Server Driver for Jdbc\lib\msbase.jar; C:\Program Files\Microsoft SQL Server Driver for Jdbc\lib\mssqlserver.jar; C:\Program Files\Microsoft SQL Server Driver for Jdbc\lib\msutil.jar;

2. new Path variable

Variable value:c:\jdk1.4\bin;c:\jdk1.4; C:\Program Files\Microsoft SQL Server Driver for Jdbc\lib\msbase.jar; C:\Program Files\Microsoft SQL Server Driver for Jdbc\lib\mssqlserver.jar; C:\Program Files\Microsoft SQL Server Driver for Jdbc\lib\msutil.jar;

3. new set java_home variable

Variable value:c:\jdk1.4

4. new set tomcat_home variable

Variable value:c:\tomcat

Step Six:

Copy C:\Microsoft SQL Server Driver for Jdbc\lib under three jar files (msbase.jar,Mssqlserver.jar ,Msutil.jar) to C:\tomcat\common\lib\

Step Seven:

Reboot the system to take effect on the settings for the environment variable. Starting the apachetomcat service and playing 127.0.0.1in the browser will see Tomcat 's default welcome interface.



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.