Topic: 用eclipse的JSP问题 |
Print this page |
1.用eclipse的JSP问题 | Copy to clipboard |
Posted by: o0烟头0o Posted on: 2005-12-19 19:35 <html> <head> <title>haha</title> </head> <body> <%=java.util.Date()%> </body> </html> 测试用的 配置没什么问题 能运行JAVA程序 能显示localhost:8080 错误如下 HTTP Status 500 - -------------------------------------------------------------------------------- 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 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:439) org.apache.jasper.compiler.Compiler.compile(Compiler.java:497) org.apache.jasper.compiler.Compiler.compile(Compiler.java:476) org.apache.jasper.compiler.Compiler.compile(Compiler.java:464) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:407) org.apache.jasper.compiler.Compiler.compile(Compiler.java:497) org.apache.jasper.compiler.Compiler.compile(Compiler.java:476) org.apache.jasper.compiler.Compiler.compile(Compiler.java:464) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs. -------------------------------------------------------------------------------- Apache Tomcat/5.0.30 |
2.Re:用eclipse的JSP问题 [Re: o0烟头0o] | Copy to clipboard |
Posted by: o0烟头0o Posted on: 2005-12-19 19:35 JAVA_home没问题的。。。 |
3.Re:用eclipse的JSP问题 [Re: o0烟头0o] | Copy to clipboard |
Posted by: andy_taoke Posted on: 2005-12-19 21:21 要不就是在eclipse里面配置的java不对头 |
4.Re:用eclipse的JSP问题 [Re: o0烟头0o] | Copy to clipboard |
Posted by: o0烟头0o Posted on: 2005-12-19 21:37 配置 ? eclipse要配置JAVA? |
5.Re:用eclipse的JSP问题 [Re: o0烟头0o] | Copy to clipboard |
Posted by: struggle Posted on: 2005-12-21 08:42 eclipse里需要配置JAVA_HOME,在preferences-->java-->Installed JREs中配置 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |