Buenas!
Estou começando agora com programação web e estava fazendo um teste de jsp e deu este erro aqui:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
C:\Documents and Settings\Nelson\workspace\jspteste\work\org\apache\jsp\benvindo_jsp.java:7: cannot access java.lang.Object
bad class file: C:\Arquivos de programas\Java\jre1.6.0_01\lib\rt.jar(java/lang/Object.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
public final class benvindo_jsp extends org.apache.jasper.runtime.HttpJspBase
^
1 error
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
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:810)
Tentei até retirar o rt.jar, mas aí o Tomcat nem sequer inicia. Estou usando o Eclipse 3.3, Tomcat 5.0.25 e o JRE 1.6.0_01 neste projeto.