This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "UnsupportedClassVersionError" Watch "UnsupportedClassVersionError" New topic
Author

UnsupportedClassVersionError

Mg Oo
Greenhorn

Joined: Nov 28, 2004
Posts: 22
Dear Java masters

How to escape such error? I face when I run files in other computers (eg.friends', lab's)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41082
    
  43
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UnsupportedClassVersionError
 
Similar Threads
Why oh why do I even Try??
MySQL Connector/J
gettin error while running program
NoClassDefFoundError
abstract class