• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bad version number in .class file

 
sameer khazi
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all..

Please let me know how to resolve the following error:

i am using jdk 1.6._10 , Tomcat 5.5 ; jstl 1.1.2

The error displayed by Tomcat 5.5 is ..

javax.servlet.ServletException: Bad version number in .class file
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


Thank you...
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like Tomcat is running under a different version of the JVM than what you used to compile your classes.

Tomcat's manager app (under Server Settings) will show you what JVM you're using.
 
Vinod K Singh
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This happens when a class compiled by higher version of Java is run under lower version of JVM.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic