aspose file tools*
The moose likes Tomcat and the fly likes Getting UnsupportedClassVersionError Unsupported major.minor version 49.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Getting UnsupportedClassVersionError Unsupported major.minor version 49.0" Watch "Getting UnsupportedClassVersionError Unsupported major.minor version 49.0" New topic
Author

Getting UnsupportedClassVersionError Unsupported major.minor version 49.0

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

When deployed into Tomcat ,my Application is not able to start and i am getting this Exception on to the Tomcat Logs please help how can i remove this Exception


java.lang.UnsupportedClassVersionError: org/apache/struts2/dispatcher/FilterDispatcher (Unsupported major.minor version 49.0)


Save India From Corruption - Anna Hazare.
Onkar Joshi
Ranch Hand

Joined: Mar 01, 2007
Posts: 116
I think I've seen this happen due to issues with JVM version being used.

Did you compile something with JDK 5 and then try to run it in JVM 1.4? Or maybe some similar 1.4 vs 5 confusion?


SCJP 5 - 95% | SCWCD 1.4 - 88% | SCBCD 5 - 93%
Onkar Joshi's blog | LinkedIn profile
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

I am sure that i compiled on JRE 1.4., and trying it to run on Tomcat 5.0

Please tell me what JRE does Tomcat5.0 uses

THank you.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I think Tomcat moved to JSE5 from Tomcat version 5.5 but you could install a compatability patch to allow it to use JSE 1.4.
Since the problem is with Struts I think you're just going to have to run Tomcat using JSE5 (or 6) but should still be able to compile against JSE 1.4
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you very much for your time .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting UnsupportedClassVersionError Unsupported major.minor version 49.0