The version number that is shown in the error describes the version of the JRE with which the class file is compatible.
Unsupported major.minor version 52.0
According to the Wikipedia , the order of the reference values are:
See more details at: The JavaTM Virtual Machine Specification 2nd edition
Version 52.0 refers to the specific version of JDK, which in this case refers to JDK 8.
To correct the problem, you should either try to run your code with a newer version of Java JRE or specify the compiler target parameter to instruct you to create code compatible with earlier versions of Java.