The JDK and JRE in both the project and Eclipse are set to Java 1.7.
I tried executing a simple Hello World project that doesn't use Spring and it runs fine with no Exceptions.
I'm sure the problem is caused by Spring. This is the actual Exception:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/springframework/context/ApplicationContext
How can I resolve this?