js 在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”就搞定了。