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 JSP Compilation Error in 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
Reply locked New topic

JSP Compilation Error in Eclipse

ShaikSalam Bashoeb

Joined: Dec 10, 2008
Posts: 24
Hello Everybody,

Today I am getting Some JSP Compilation Exceptions, I don't know why it is giving this error, I am forwarding the control to the Jsp from Servlet that time it is giving this error.
and one more thing... I am getting this error only when i run tomcat 5.0 from Eclipse 3.4.0. and when i run tomcat 5.0 outside the eclipse my application is running fine... no errors...

NOTE: I made sure that eclipse java build path is using jre1.5.0

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
D:\Tomcat 5.0\work\Catalina\localhost\FirstProject\org\apache\jsp\pages\jsp\ cannot access java.lang.Object

Generated servlet error:
bad class file: C:\Program Files\Java\jre1.5.0\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 adminhome_jsp extends org.apache.jasper.runtime.HttpJspBase
1 error

myclasspath settings is C:\Program Files\Java\jre1.5.0\lib;.;C:\Program Files\Java\jdk1.5.0\lib\tools.jar

path setting is %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;.;C:\Program Files\Java\jdk1.5.0\bin

JavaRanch Forum is too good for me, when ever I have got any problem I got quick and good response everytime..

Thanks in Advanced,
any help will be appreciated.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Please do not post the same question in multiple forums.

JBoss In Action
I agree. Here's the link:
subject: JSP Compilation Error in Eclipse
It's not a secret anymore!