• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting unsupported classs version exception

 
Sekhar Choudary
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12101
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sekhar Choudary
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks Joanne and fred for yours valuable information.

Sekhar.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic