i searched for this problem such
How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version
but the answer didnt work for me
i am using jdk 1.7 , i set the compiler to 1.7.0_79 which meant to be java 7 but when i run i still getting the error , i set the project byte code version to 1.7 but the same message
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/hibernate/jpa/HibernatePersistenceProvider : Unsupported major.minor version 52.0
this exception happens when try to load the persistence.xml on this line
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
and in the java code on this line
EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("sample");