关于jsp的起步问题.(20分)

晨空

Unregistered / Unconfirmed
GUEST, unregistred user!
环境变量设置如下
在autoexec.bat文件中
SET JAVA_HOME=D:/Program Files/JBuilder7/jdk1.3.1
SET CATALINA_HOME=D:/Program Files/JBuilder7/jakarta-tomcat-4.0.3
SET CLASSPATH=D:/Program Files/JBuilder7/jakarta-tomcat-4.0.3/common/lib/SERVLET.JAR;.
SET PATH=c:/windows;D:/Program Files/JBuilder7/jdk1.3.1/bin
在config.sys里
shell=c:/command.com /e:1024 /p
设置完后,我重新启动电脑,执行D:/Program Files/JBuilder7/jakarta-tomcat-4.0.3/startup.bat
在dos窗体中出现:
using catalina_base.....
using catalina_home.....
using catalina_tmpdir...
using java-home.......
out of environment space
out of environment space
out of environment space
usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-hotspot to select the "hotspot" UM
-server to select the "server" UM
-classic to select the "classic" UM
if present,the option to select the UM must be first.
the default UM is -hotspot.
-cp -classpath <directories and zip/jar files separated by ;>
set seearch path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversionprint product version and continue
-? -help print this help message
-x print help on non-standard options
之后,我在IE里输入:http://localhost:8080/
却没有出现书中所说的那个页面.不知是不是我的环境变量设得有问题?
 
帮你提提
 
using catalina_base.....
using catalina_home.....
using catalina_tmpdir...
using java-home.......
out of environment space
out of environment space
out of environment space
你看,这里出现了out of environment space.
可能的原因是你的path中的环境变量超长了。
试着这样处理:
重新安装一个全新的jsk 1.4在一个尽量短的目录下,比如c:/j2sdk1.4;
确认你在命令行下java -version结果是1.4;
然后重新指定你的各个环境变量的值。
>环境变量设置如下
>在autoexec.bat文件中
你用的是windows 98??? 最好换到windows 2000 sp3来。
因为几乎所有的大型java程序都不是为win98开发的,相信测试组也不会花很大时间在win98平台上测试。
 
其实我记得好象还可以在该.bat文件的属性中设置环境变量空间大小的。你试试,WIN98我不知道能不能,
我很久没用WIN98了
 
多人接受答案了。
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
3K
import
I
I
回复
0
查看
2K
import
I
I
回复
0
查看
1K
import
I
顶部