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
I tried most of the answers without success. What worked for me was (after following https://stackoverflow.com/a/21279068/2408893):