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

getting unsupported classs version exception

Sekhar Choudary
Ranch Hand

Joined: May 03, 2008
Posts: 57
Hi all,

my program is getting successful compilation , but when i try to run it gives UnsupportedClassVersionException , i have set path to bin in jdk.
do i need to set classpath if so to where.
can anyone let me know solution.


Sekhar.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3742
    
  16
That usually means you have compiled with one version but you are trying to run it with an earlier version. Check the versions of your jdk and jre.


Joanne
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11499
    
  16

you also may want to be sure you don't have an old .class file around preventing things from being compiled with the new compiler.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Sekhar Choudary
Ranch Hand

Joined: May 03, 2008
Posts: 57
Hi,

Thanks Joanne and fred for yours valuable information.

Sekhar.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting unsupported classs version exception