在win98下安装jsp环境 (jswdk-1.0.1或tomcat3.1在jdk1.3下)
在pwin98se环境下 ,我使用jsp运行环境为jswdk-1.0.1和jdk1.3,要到http://java.sun.com处下载。jdk1.3安装过程很简单,jswdk1.0.1无须安装只要解压缩即可。然后修改autoexec.bat如下:
path=%path%;c:\jdk1.3
set classpath=c:\jdk1.3\lib\tools.jar;c:\jdk1.3\lib\dt.jar
set java_home=c:\jdk1.3(我把jdk装到了c盘)
有两个问题有必要说明一下。
一. 启动jswdk-1.0.1下的startserver.bat的时候,报告out of environment space错误。(tomcat3.1通 ,启动tomcatin下的 startup.bat)
查阅jswdk1.0.1的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.
明白了,只要调整startserver.bat(startup.bat) 的属性,将“内存”中的“初始环境”由“自动”修改做“2186”就搞定了。
二.还是无法启动server,好象有个弹出窗口在出错误信息,但无法捉到,转向输出也不起作用
打开startserver.bat仔细检查,原来大部分都是在设置环境变量,只有一句关键的:
start java com.sun.web.shell.startup %1 %2 %3 %4 %5 %6 %7 %8 %9
那么试着在dos窗口下运行java,提示注册表访问错误,键名为:
“softwarejavasoftjava runtime environment”
打开注册表检查,发现键名是“java运行时环境”,靠,真不知道jdk的安装程序在搞什么飞机,把这个键名居然给本地化了!改回英文,再在ie5中敲入http://127.0.0.1:8080/,
呵,终于看到了javaserver (tm) web development kit 的大字标题。
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器