This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
When I execute some JSP programs i got the error as .jsp program cannot access java.lang.Object bad class file: C:\Program Files\Java\jre1.5.0_10\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 JD_jsp extends org.apache.jasper.runtime.HttpJspBase ^ 1 error
I have also seen this error at build time. As I recall, it has to do with the compliance level of your selected compiler. Try this: go to "Project" -> "Properties" -> "Java Compiler" and check the compiler compliance level that is selected under JDK compliance. This should be set to "1.4" for Tomcat 5.5.x, and I think that's also true for Tomcat 5.0.x.
I also recall seeing an option to enable/disable pre-compiled JSP's at build time, and that also seems to be related to this kind of error, but I cannot find that option anywhere in my Eclipse 3.2 configuration. If you find this, try disabling it.
Good luck! [ February 07, 2007: Message edited by: Philip Shanks ]
Philip Shanks, SCJP - Castro Valley, CA
My boss never outsources or has lay-offs, and He's always hiring. I work for Jesus! Prepare your resume!