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
In my case I had system variable path has "C:\ProgramData\Oracle\Java\javapath" location.
In "C:\ProgramData\Oracle\Java\javapath" location java, javaw only there. So I am getting the same error.
Once I removed all files in "C:\ProgramData\Oracle\Java\javapath" folder my error got resolved.