Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UnsupportedClassVersionError: (Unsupported major.minor version 49.0)

 
Nirmal Mekala Kumar
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Nirmal Mekala Kumar
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnks ernest that was exactly the probs
 
Nguyen Hoang
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, It help me a lot. I got the same prob!
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic