绝对菜鸟问题,关于tomcat下jsp环境的配置
已经安装了jdk1.4,tomcat4.
已经设置好了 path = C:\Program Files\Jbuilder\jdk1.4\bin
JAVAA_HOME = C:\Program Files\Jbuilder\jdk1.4
CLASSPATH = .\;C:\Program Files\Jbuilder\jdk1.4\lib\dt.jar;C:\Program Files\Jbuilder\jdk1.4\lib\tools.jar;
现在在tomcat的ROOT下建立文件hi.jsp内容为
<html>
<head><title>jsp教程</title></head>
<body>
<I><%out.println(“hi world”);%></I>
</body></html>
用IE访问 http://xxx.xxx.xxx.xxx:port/hi.jsp
结果出现
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and access path.
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:128)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:307)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:420)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:460)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:294)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
note The full stack trace of the root cause is available in the Tomcat logs.
的错误提示。
我想可能是环境没有配好吧
小弟是新手,初学jsp,这个问题已经困扰一天了,请各位赐教