Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP Compilation Error in Eclipse

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please do not post the same question in multiple forums.
https://coderanch.com/t/470931/IDEs-Version-Control-other-tools/JSP-Compilation-Error
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic