Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UnsupportedClassVersionError --

 
Aditya Kanitkar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, guys....

Does anybody have more idea about this error...??



Last evening, it was working fine...

Thanks,

Aditya Kanitkar
 
Campbell Ritchie
Sheriff
Pie
Posts: 48981
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's very common. I think 49.0 means Java5. It means you compiled your code with an newer compiler than the JVM you are running it with. Get a newer JVM. Get a Java6 JDK.

If 49.0 is Java5, you must have compiled it with a Java6 compiler and are running the code on a Java5 JVM.
 
Rob Spoor
Sheriff
Pie
Posts: 20533
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:If 49.0 is Java5, you must have compiled it with a Java6 compiler and are running the code on a Java5 JVM.

I think you mean that the compiler must have been Java 5 and the JVM is Java 1.4. The class version in the .class file is 49.0 - Java 5.
 
Aditya Kanitkar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:
Campbell Ritchie wrote:If 49.0 is Java5, you must have compiled it with a Java6 compiler and are running the code on a Java5 JVM.

I think you mean that the compiler must have been Java 5 and the JVM is Java 1.4. The class version in the .class file is 49.0 - Java 5.


Actually, Oracle Client was installed on my machine, that time oracle jvm 1.4 was set in the path. This was the root of the problem.
So now i have removed that path of oracle jvm 1.4 from PATH environ var, And the error has gone...


Thanks,

Aditya Kanitkar
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah yes, Oracle has a tendency to do this.
 
Campbell Ritchie
Sheriff
Pie
Posts: 48981
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote: . . . the compiler must have been Java 5 and the JVM is Java 1.4. . . .
Yes, you are right there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic