網絡操作系統:Windows2000server,JSP服務器:Tomcat5.0,數據庫:SQLServer2k,JAVA虛擬機:JDK1.4
步驟一:
安裝JDK1.4(目錄:C:JDK1.4)
步驟二:
安裝SQLServer2k。(默認目錄)
步驟三:
安裝Tomcat5.0。該服務器和web服務器Apache捆綁在一起,省去了人工捆綁的麻煩。 (目錄:C:tomcat)
步驟四:
安裝Microsoft SQL Server 2000 Driver for JDBC。(默認目錄)
步驟五:
系統環境變量設置: 在Administrators的用戶變量中: 1.新建classpath變量, 變量值:c:jdk1.4bintools.jar;c:jdk1.4libdt.jar;C:Program FilesMicrosoft SQL Server 2000 Driver for JDBClibmsbase.jar;C:Program FilesMicrosoft SQL Server 2000 Driver for JDBClibmssqlserver.jar;C:Program FilesMicrosoft SQL Server 2000 Driver for JDBClibmsutil.jar; 2.新建path變量 變量值:c:jdk1.4bin;c:jdk1.4;C:Program FilesMicrosoft SQL Server 2000 Driver for JDBClibmsbase.jar;C:Program FilesMicrosoft SQL Server 2000 Driver for JDBClibmssqlserver.jar;C:Program FilesMicrosoft SQL Server 2000 Driver for JDBClibmsutil.jar; 3.新建set java_home變量 變量值:c:jdk1.4 4. 新建set tomcat_home變量 變量值:c:tomcat
步驟六:
復制C:Microsoft SQL Server 2000 Driver for JDBClib下三個jar文件(msbase.jar,mssqlserver.jar,msutil.jar)到C:tomcatcommonlib下步驟七:
重新啟動系統,使環境變量的設置生效。啟動Apachetomcat服務,在浏覽器中打127.0.0.1,會看到tomcat的默認歡迎界面。