注册 登录
编程论坛 J2EE论坛

tomcat+jsp 报错,Unable to find a javac compiler;

青岛啤酒 发布于 2006-03-28 17:24, 1495 次点击
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:106)
	org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
	org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
	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.28 logs.

6 回复
#2
piaoxue2006-03-28 18:03
文件的路径不对呀!
#3
青岛啤酒2006-03-29 08:41

你是说得jsp文件的位置不对么?

#4
〃雙掱ぴ搋兜づ2006-03-29 10:30

不好说,最好有源文件

#5
我奋斗2006-03-29 16:21

你在tomcat下根本就没有配好classpath

#6
飘飘叶子2006-03-29 21:07
环境变量classpath的路径问题
#7
bagger2006-03-30 12:01
Main is not on the classpath
环境变量没设置吧!
1