I\'m compiling a project in Eclipse using m2eclipse. I set the JDK path in Eclipse like this:
Windows-->preferences-->installed jres--> jdk1.7.xx p
For me, it is exactly what the maven of eclipse complains
So, I press Edit button and change path to the JDK Folder, then clean project and everything starts to work
Edit