
When UnSupportedClassVersionError in Java comes: So now we got the theory behind class file format and major and minor version of class file in Java. So if a class file has version 48.0 it means that major version of class file is "48" and minor version is "0", which tells us that JDK 1.4 has been used to compile and generate that class file.

Only Sun can specify what range of versions a JVM implementation conforming to a certain release level of the Java platform may support.”įor example: JDK 1.2 supports class file formats from version 45.0 to version 46.0 inclusive.


According to Java Virtual Machine specification, “A JVM implementation can support a class file format of version v if and only if v lies in some contiguous range Mi.0 v Mj.m.
