Two Laptop Bag
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
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

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(

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

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

Joined: Jul 08, 2003
Posts: 24199


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

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...
I agree. Here's the link:
subject: UnsupportedClassVersionError: (Unsupported major.minor version 49.0)
It's not a secret anymore!