Unsupported major.minor version 52.0

It is Java version mismatch. You need to upgrade your Java version to Java 8 and Execute using JRE 8.

These are the assigned major numbers. The error regarding the unsupported major.minor version is because during compile time you are using a higher JDK and a lower JDK during runtime.

The issue is because of Java version mismatch. Referring to the Wikipedia Java Class Reference:

  • Java SE 10 = 54
  • Java SE 9 = 53
  • Java SE 8 = 52
  • Java SE 7 = 51
  • Java SE 6.0 = 50
  • Java SE 5.0 = 49
  • JDK 1.4 = 48
  • JDK 1.3 = 47
  • JDK 1.2 = 46
  • JDK 1.1 = 45