top
Loading...
98下安裝JSP環境的倆常見問題
在PWIN98SE環境下 ,我使用JSP運行環境為JSWDK-1.0.1和JDK1.3,要到http://java.sun.com處下載。JDK1.3安裝過程很簡單,JSWDK1.0.1無須安裝只要解壓縮即可。然后修改AUTOEXEC.BAT如下:
PATH=%PATH%;d:jdk1.3in
set CLASSPATH=d:jdk1.3libools.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,提示注冊表訪問錯誤,鍵名為:
“SoftwareJavaSoftJava Runtime Environment”
打開注冊表檢查,發現鍵名是“Java運行時環境”,靠,真不知道JDK的安裝程序在搞什么飛機,把這個鍵名居然給本地化了!改回英文,再在IE5中敲入http://127.0.0.1:8080/,
呵,終于看到了JavaServer (tm) Web Development Kit 的大字標題。

北斗有巢氏 有巢氏北斗