title: Unsupported java class version 52
body: <p>I have found quite some related questions, but not one that could solve my problem.
  I have some Java source code in my eclipse project, I get a <br><code>Exception in thread "main" java.lang.UnsupportedClassVersionError: org/hibernate/HibernateException : Unsupported major.minor version 52.0</code>
  When running my class, even though its a Hibernate exception, the inner exception comes from the ClassLoader after invoking a default constructor.
  It is clear to me that apparently I am running in <code>JRE7</code> a class compiled with java8 compiler, however, I can't see that in my project configuration, here's the compiler (1.7):
  <a href="https://i.stack.imgur.com/170O8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/170O8.png" alt="Compiler:"></a></p>
  
  <p>And here's the JRE:
  <a href="https://i.stack.imgur.com/1Oigm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1Oigm.png" alt="enter image description here"></a></p>
  
  <p>Also from <em>window > preference > Java > compiler</em>, I see that is compiled in java 7
  <a href="https://i.stack.imgur.com/O4TqL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O4TqL.png" alt="enter image description here"></a></p>
  
  <p>After cleaning the project several times, so to make sure no old classes are there, and resolving dependencies in maven, I still get this.
  Any advice will be highly appreciated.</p>