当前位置: 技术问答>java相关
一个jsp的起步问题,高手请帮忙
来源: 互联网 发布时间:2015-09-22
本文导语: 环境变量设置如下 在autoexec.bat文件中 SET JAVA_HOME=D:Program FilesJBuilder7jdk1.3.1 SET CATALINA_HOME=D:Program FilesJBuilder7jakarta-tomcat-4.0.3 SET CLASSPATH=D:Program FilesJBuilder7jakarta-tomcat-4.0.3commonlibSERVLET.JAR;. SET PATH=c:windows;D:Program FilesJB...
环境变量设置如下
在autoexec.bat文件中
SET JAVA_HOME=D:Program FilesJBuilder7jdk1.3.1
SET CATALINA_HOME=D:Program FilesJBuilder7jakarta-tomcat-4.0.3
SET CLASSPATH=D:Program FilesJBuilder7jakarta-tomcat-4.0.3commonlibSERVLET.JAR;.
SET PATH=c:windows;D:Program FilesJBuilder7jdk1.3.1bin
在config.sys里
shell=c:command.com /e:1024 /p
设置完后,我重新启动电脑,执行D:Program FilesJBuilder7jakarta-tomcat-4.0.3startup.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
set seearch path for application classes and resources
-D=
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/
却没有出现书中所说的那个页面.不知是不是我的环境变量设得有问题?
在autoexec.bat文件中
SET JAVA_HOME=D:Program FilesJBuilder7jdk1.3.1
SET CATALINA_HOME=D:Program FilesJBuilder7jakarta-tomcat-4.0.3
SET CLASSPATH=D:Program FilesJBuilder7jakarta-tomcat-4.0.3commonlibSERVLET.JAR;.
SET PATH=c:windows;D:Program FilesJBuilder7jdk1.3.1bin
在config.sys里
shell=c:command.com /e:1024 /p
设置完后,我重新启动电脑,执行D:Program FilesJBuilder7jakarta-tomcat-4.0.3startup.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
set seearch path for application classes and resources
-D=
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/
却没有出现书中所说的那个页面.不知是不是我的环境变量设得有问题?
|
感觉 startup.bat理有问题,你可以 在Jbuilder利启动tomcat
在Jbuilder new1个jsp,执行就可以看到tomcat了,
也可以在 run-->config里面配置 应用服务器
在Jbuilder new1个jsp,执行就可以看到tomcat了,
也可以在 run-->config里面配置 应用服务器