From someone's project, I am getting this error:
Java Build Path Problems (1 item)
Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workplace that are strictly compatible with this environment.
I have the latest JDK (jdk1.6.0_25). From my understanding, I can do one of the following:
Go for the second option, Edit the project to agree with the latest JDK
From the Package Explorer in Eclipse, you can right click the project, choose Build Path, Configure Build Path to get the build path dialog. From there you can remove the JRE reference for the 1.5 JRE and 'Add Library' to add a reference to your installed JRE.
To configure your JRE in eclipse:
Try this too in addition to MahmoudS comments. Change the maven compiler source and target in your pom.xml to the java version which you are using. Say 1.7 for jdk7
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
Source: Stackoverflow.com