What is java.lang.UnsupportedClassVersionError in java

  • java.lang.UnsupportedClassVersionError  is a quite common error . its related to class files(unsupported class version).
  • Java.lang.UnsupportedClassVersionError is a subclass of java.lang.ClassFormatError. Most probably this error will occurs during linking phase of classloading by JVM.
  • Common root cause of this error is , you will have complied your  java code in higher version of java(JDK ) and will try to run this java class in lower version of java(JDK ) . vice-versa this error will not came.
  • Every java class file has associated with two versions  major version and minor version.

Leave a comment