• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

UnsupportedClassVersionError --

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, guys....

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



Last evening, it was working fine...

Thanks,

Aditya Kanitkar
 
Marshal
Posts: 79471
379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 22787
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah yes, Oracle has a tendency to do this.
 
Campbell Ritchie
Marshal
Posts: 79471
379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic