在win98下安裝JSP環境
2024-09-05 00:20:29
供稿:網友
在pwin98se環境下 ,我使用jsp運行環境為jswdk-1.0.1和jdk1.3,要到http://java.sun.com處下載。jdk1.3安裝過程很簡單,jswdk1.0.1無須安裝只要解壓縮即可。然后修改autoexec.bat如下:
path=%path%;d:/jdk1.3/bin
set classpath=d:/jdk1.3/lib/tools.jar
set java_home=d:/jdk1.3(我把jdk裝到了d盤)
有兩個問題有必要說明一下?!?
一. 啟動startserver.bat的時候,報告out of environment space錯誤?!?
查閱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的屬性,將“內存”中的“初始環境”由“自動”修改做“2186”就搞定了?!?
二.還是無法啟動server,好象有個彈出窗口在出錯誤信息,但無法捉到,轉向輸出也不起作用
打開startserver.bat仔細檢查,原來大部分都是在設置環境變量,只有一句關鍵的:
start java com.sun.web.shell.startup %1 %2 %3 %4 %5 %6 %7 %8 %9
那么試著在dos窗口下運行java,提示注冊表訪問錯誤,鍵名為:
“software/javasoft/java runtime environment”
打開注冊表檢查,發現鍵名是“java運行時環境”,靠,真不知道jdk的安裝程序在搞什么飛機,把這個鍵名居然給本地化了!改回英文,再在ie5中敲入http://127.0.0.1:8080/,
呵,終于看到了javaserver (tm) web development kit 的大字標題。