File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes configuring Tomcat 5.0 with eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "configuring Tomcat 5.0 with eclipse" Watch "configuring Tomcat 5.0 with eclipse" New topic

configuring Tomcat 5.0 with eclipse

Mona Richerdson

Joined: Feb 06, 2007
Posts: 9
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

Can anybody tell me how to resolve this error
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

"msg msg",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
Philip Shanks
Ranch Hand

Joined: Oct 15, 2002
Posts: 189
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!
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

"Mona G.",
That's a step in the right direction. Please note that we do require a last name though, not just a last initial.

Forum Bartender

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: configuring Tomcat 5.0 with eclipse
jQuery in Action, 3rd edition