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 the JRE was in the PATH environment variable before the JDK path
So I removed 1. Probably swapping them would fix it too.