• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

UnsupportedClassVersionError

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Java masters

How to escape such error? I face when I run files in other computers (eg.friends', lab's)
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This error occurs if the classes were compiled with a JDK that is newer than the one you're using to run them. Version 49.0 is the one generated by Java 1.5, so you're probably trying to run it with a Java 1.4 JVM.

Try compiling your code with the "-source 1.4 -target 1.4" options. This will only work if you use no Java 5-specific code, of course. If you do, upgrade the JVM on the other machine to Java 5.
 
reply
    Bookmark Topic Watch Topic
  • New Topic