• Post Reply Bookmark Topic Watch Topic
  • New Topic

UnsupportedClassVersionError  RSS feed

 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I added a JradioButtonMenuItem to my program and when I run it in a different computer I get this



can someone explain what exactly is going on here and what I can do about it
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You compiled the program with javac from JDK 1.5, and then tried to run it on another computer with an earlier version of Java. The other computer needs to be upgraded to Java 5.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12156
256
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alternatively, if you have not used any JDK 5 features, you could recompile your classes with the -target <release> javac flag, specifying the version of the JDK runtime on the computer you wish to use as your final destination.

Regards, Andrew
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!