Unable to find a javac compiler - IDC资讯网_站长学院 - Java PHP Flex Python Ajax CSS 编程 开源 学习 总结 分享

Unable to find a javac compiler

[ 2008-07-01 14:03 | by 草山湖 ]
运行jsp页面出现下面错误,解决方法:把JAVA_HOME/lib下面的tools.jar 拷贝到 TOMCAT_HOME/common/lib 目录下就可以了
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
  at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
  at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
  at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
  at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
编程语言 | 评论(0) | 引用(0) | 阅读(4369)