今天安装了JDK+TOMCAT 测试了一个书上的计数器居然发现出现如下的错误
org.apache.jasper.JasperException: Unable to compile 注意:sun.tools.javac.Main 已过时。
C:\java\jakarta-tomcat\work\DEFAULT\ice\counterJavaBeanJsp_1.java:4: 在 import 中未找到类 Counter。
import Counter;
^
1 个错误, 1 个警告
at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:619)