aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes 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 » Engineering » IDEs, Version Control and other tools
Bookmark "UnsupportedClassVersionError: (Unsupported major.minor version 49.0)" Watch "UnsupportedClassVersionError: (Unsupported major.minor version 49.0)" New topic
Author

UnsupportedClassVersionError: (Unsupported major.minor version 49.0)

Nirmal Mekala Kumar
Ranch Hand

Joined: Aug 27, 2005
Posts: 63
hello all,
I was happily developing my code in eclipse3.1 and also executed it many times. But suddenly i got this error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: Indexer1 (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)...............

is it the eclipse IDE problem or JVM problem. This is really urgent.
thnks in advance
Nirmal


Nirmal Kumar<br />If you have to aim, aim for the moon. Even if you miss you will land among the stars
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Hi,

Welcome to JavaRanch!

Eclipse is running with JDK 1.4, but you're trying to load a class file compiled with default settings under JDK 1.5. That's not going to work. Either run Eclipse with JDK 1.5, or don't use any classes or libraries compiled with 1.5 unless you use the --source 1.4 switch.


[Jess in Action][AskingGoodQuestions]
Nirmal Mekala Kumar
Ranch Hand

Joined: Aug 27, 2005
Posts: 63
Thnks ernest that was exactly the probs
Nguyen Hoang
Greenhorn

Joined: Mar 24, 2008
Posts: 6
Thanks, It help me a lot. I got the same prob!


-----------<br />SCJP 1.4<br />SCWCD: On progress...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: UnsupportedClassVersionError: (Unsupported major.minor version 49.0)