这是什么问题(运行jsp之后出现的)(50分)

  • 主题发起人 主题发起人 newmember
  • 开始时间 开始时间
N

newmember

Unregistered / Unconfirmed
GUEST, unregistred user!
C:/j2sdk1.4.2/bin/javaw -classpath "C:/Tomcat 4.1;D:/JBuilder9/jdk1.4/lib/tools.jar" -Dcatalina.home="C:/Tomcat 4.1" org.apache.catalina.startup.Bootstrap -config C:/text/Tomcat/conf/server8080.xml start
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Exception in thread "main"
 
你的tomcat没有配置好吧
-classpath "C:/Tomcat 4.1;D:/JBuilder9/jdk1.4/lib/tools.jar"
C:/Tomcat 4.1;怎么会有这样的classpath?
 
能具体一些吗
 
你漏了bootstrap.jar。
我的Jbuilder运行如下:
D:/JBuilder8/jdk1.4/bin/javaw -classpath "D:/JBuilder8/thirdparty/jakarta-tomcat-4.1.12-LE-jdk14/bin/bootstrap.jar;D:/JBuilder8/jdk1.4/lib/tools.jar" -Dcatalina.home="D:/JBuilder8/thirdparty/jakarta-tomcat-4.1.12-LE-jdk14" org.apache.catalina.startup.Bootstrap -config D:/jb/xmltest/testcode/Tomcat/conf/server8080.xml start
你可以参考一下。
 
谁能回答呢
 
你用的是jbuilder里带的tomcat吗??如果是的话 就应该没问题的呀
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
是配置问题
 
在jbuilder里面config servers,找到你的tomcat,然后在class这一项,把C:/Tomcat 4.1这个改成C:/Tomcat 4.1/bin/bootstrap.jar
 
我不是用自带的,zhangxu77按你说的改后出现了C:/j2sdk1.4.2/bin/java -classpath "C:/Tomcat 4.1/bin/bootstrap.jar;C:/Tomcat 4.1/bin/bootstrap.jar;C:/Tomcat 4.1/bin/bootstrap.jar;C:/Tomcat 4.1/bin/bootstrap.jar;C:/Tomcat 4.1/bin/bootstrap.jar;C:/Tomcat 4.1/bin/bootstrap.jar;C:/Tomcat 4.1/bin/bootstrap.jar;C:/Tomcat 4.1/bin/bootstrap.jar;C:/Tomcat 4.1/bin/bootstrap.jar;C:/Tomcat 4.1/webapps/ROOT/text/classes;C:/j2sdk1.4.2/lib/jmx-tools.jar;C:/j2sdk1.4.2/lib/dt.jar;C:/j2sdk1.4.2/lib/htmlconverter.jar;C:/j2sdk1.4.2/lib/tools.jar;C:/j2sdk1.4.2/jre/javaws/javaws.jar;C:/j2sdk1.4.2/jre/lib/ext/dnsns.jar;C:/j2sdk1.4.2/jre/lib/ext/ldapsec.jar;C:/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar;C:/j2sdk1.4.2/jre/lib/ext/localedata.jar;C:/j2sdk1.4.2/jre/lib/im/indicim.jar;C:/j2sdk1.4.2/jre/lib/im/thaiim.jar;C:/j2sdk1.4.2/jre/lib/jce.jar;C:/j2sdk1.4.2/jre/lib/sunrsasign.jar;C:/j2sdk1.4.2/jre/lib/charsets.jar;C:/j2sdk1.4.2/jre/lib/plugin.jar;C:/j2sdk1.4.2/jre/lib/jsse.jar;C:/j2sdk1.4.2/jre/lib/rt.jar;C:/j2sdk1.4.2/demo/jfc/Java2D/Java2Demo.jar;C:/j2sdk1.4.2/demo/plugin/jfc/Java2D/Java2Demo.jar" org.apache.jasper.JspC -d "C:/Tomcat 4.1/webapps/ROOT/text/classes/Temporary_Files/.jsp/text" -c jsp1_0002ejsp_jsp -uriroot "C:/Tomcat 4.1/webapps/ROOT/text/text" "C:/Tomcat 4.1/webapps/ROOT/text/text/jsp1.jsp"
"jsp1.jsp": java.lang.NoClassDefFoundError: org/apache/jasper/JspC
Exception in thread "main" 的问题,为什么?
 
后退
顶部