aspose file tools*
The moose likes Beginning Java and the fly likes UnsupportedClassVersionError -- Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "UnsupportedClassVersionError -- " Watch "UnsupportedClassVersionError -- " New topic
Author

UnsupportedClassVersionError --

Aditya Kanitkar
Ranch Hand

Joined: Aug 08, 2009
Posts: 72
Hi, guys....

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



Last evening, it was working fine...

Thanks,

Aditya Kanitkar
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39834
    
  28
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

Joined: Oct 27, 2005
Posts: 19761
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Aditya Kanitkar
Ranch Hand

Joined: Aug 08, 2009
Posts: 72
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

Joined: Sep 29, 2008
Posts: 12617

Ah yes, Oracle has a tendency to do this.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39834
    
  28
Rob Prime wrote: . . . the compiler must have been Java 5 and the JVM is Java 1.4. . . .
Yes, you are right there.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: UnsupportedClassVersionError --