报这样的错 Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.
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
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:402) org.apache.jasper.compiler.Compiler.compile(Compiler.java:492) org.apache.jasper.compiler.Compiler.compile(Compiler.java:471) org.apache.jasper.compiler.Compiler.compile(Compiler.java:459) 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)
jdk
classpath .
JAVA_HOME D:\Program Files\Java\jdk1.5.0
Path D:\Program Files\Java\jdk1.5.0\BIN
CATALINA_HOM D:\Tomcat 5.0tomcat
java Virtual machine D:\Program Files\Java\jre1.5.0\bin\client\jvm.dll
java Classpath: D:\Program Files\Java\jre1.5.0\lib\tools.jar;d:\Tomcat 5.0\bin\bootstrap.jar
请问哪里没有设置好
我用的是xp系统,没有那么复杂的配置,就可以打开jsp页面。装好jdk1.5后,我只是在path里*/bin的配置和JAVA_HOME里设置jdk位置,在TOMCAT_HOME设置tomcat根目录的位置。然后,启动tomcat文件夹里的bin里的startup,在浏览器里就可以看到小老虎了。如果你还是不能看到你的jsp页面,我怀疑你的jsp页面放置的位置有问题。你可以放到D:\Tomcat 5.0\webapps\ROOT这个下面,就可以了在IE里浏览了。
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
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:402)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:492)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:471)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:459)
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)