Get your CodeRanch badge!*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply locked New topic
Author

JSP Compilation Error in Eclipse

ShaikSalam Bashoeb
Greenhorn

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\adminhome_jsp.java:7: 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
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

Please do not post the same question in multiple forums.
http://www.coderanch.com/t/470931/IDEs-Version-Control-other-tools/JSP-Compilation-Error


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Compilation Error in Eclipse
 
Similar Threads
MVC question
running simple servlet
Basic help
compile error using ant in eclipse
JSP Compilation Error