Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

UnsupportedClassVersionError: (Unsupported major.minor version 49.0)  RSS feed

 
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
Sheriff
Posts: 24217
38
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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!