My Oracle Support Banner

Java Application Quits with java.lang.UnsupportedClassVersionError (Doc ID 1228044.1)

Last updated on MARCH 31, 2023

Applies to:

Java SE JDK and JRE - Version 1.5.0 and later
Information in this document applies to any platform.

Symptoms

You are trying to run an application written in Java, but the application doesn't start at all. Possibly you get the application to run but it finally quits. In either case, you get some form of a java.lang.UnsupportedClassVersionError.

 

1)  java.lang.UnsupportedClassVersionError: Bad version number in .class file


Example from a Solaris SPARC platform:

Changes

You have tried to run an application that requires a later Java Runtime Environment that you are currently running.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.