File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Unsupported major.minor " Watch "Unsupported major.minor " New topic

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

Joined: Jul 08, 2003
Posts: 24199

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]
I agree. Here's the link:
subject: Unsupported major.minor
It's not a secret anymore!