File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Unsupported major.minor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Unsupported major.minor " Watch "Unsupported major.minor " New topic
Author

Unsupported major.minor

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
I have compiled a Java application but whenever i try to execute it i keep getting this error


"The java class could not be loaded. java.lang.UnsupportedClassVersionError:"
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

You're trying to run the program with an older JVM than the compiler you've used to compile it; for example, the Java 5 compiler and a JDK 1.4 JVM. This often happens on Windows when you install a JDK in the normal place, but some previous installation has installed an extra copy of java.exe inside C:\WINDOWS or some other place it doesn't belong. Either find and delete these extra copies, or modify your PATH to make sure your JDK installation comes first.


[Jess in Action][AskingGoodQuestions]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unsupported major.minor