在WIN98环境下 ,我使用JSP运行环境为JDK1.3.1,如果您没有请到个大jsp站点处下载。JDK1.3.1无须安装只需解压即可。tomcat-4.0.1也只需解压即可。然后修改AUTOEXEC.BAT如下:
PATH=%PATH%;c:\jdk1.3.1
set CLASSPATH=C:\jdk1.3.1\lib\Tools.jar
set JAVA_HOME=c:\jdk1.3.1(我把JDK1.3.解压到了C盘)
注意:有两个问题有必要说明一下。
一. 启动tomcat4.0.1.1下的startup.bat的时候,报告Out of Environment Space错误。
查阅里面的redme.html得到:
Out of Environment Space error message
On Windows 95/98 systems, you may see an "Out of Environment Space" error message when starting the server. This happens if Windows provides too small a space for environment variables. To work around this limitation:
1 Close the DOS window (the error can corrupt its CLASSPATH variable).
2 Open a new DOS window.
3 Click on the MS-DOS icon at the top left of the window.
4 Select the Properties option.
5 Click on the Memory tab.
6 Adjust the "Initial Environment" drop-down box from "Auto" to "2816".
7 Click OK.
8 Start the server.
明白了,只要调整startup.bat 的属性,将“内存”中的“初始环境”由“自动”修改做“2816”就搞定了。shutdown也是如此。然后 启动服务环境,在IE5.0的浏览器地址栏输入 http://127.0.0.1:8080/或 http://'计算机的名字,:8080/
呵,终于看到了 TomCat 的版本号网页的大字标题。安装成功……