Unsupported major.minor version 52.0
This error happens when a class compiled using Java 1.8 compiler into a lower JRE version e.g. JRE 1.7 or JRE 1.6.
Easy way to fix this error is install the latest Java release
Here it's Java 8 in this case.
Also make sure that the production environment have the same JDK version that used for building the Java application so that we can avoid these kinds of errors.