aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "UnsupportedClassVersionError" Watch "UnsupportedClassVersionError" New topic
Author

UnsupportedClassVersionError

Allen Bandela
Ranch Hand

Joined: Feb 16, 2006
Posts: 128

Why do I get this error?
Is it due to the JDK version?
I used JDK1.5. Is'nt Java backward compatible? It executed fine on my machine, but gave me the above error on a different machine. By the way, the exception occured while initializing an applet.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

If you compile with JDK 1.5, by default, the class files will not work with older JDKs. Older class files will work with JDK 1.5. You can use the -target switch to generate code for older JVMs, but then you can't use any nw language features.

Moving to Java in General (Beginner).


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UnsupportedClassVersionError
 
Similar Threads
Interface not registered error while installing jdk1.4.1
Please help
String explanation
Tomcat intranet Web Application
not able to uninstall Jdk 1.4.0_01