I had a perfectly working Eclipse Luna, and started getting this error while trying to upgrade to Java 8 (and updating jre, jdk etc).
Shan's solution didn't work for me.
So I just downloaded and installed latest Eclipse. It's working fine. Saves the time of debugging and fiddling around.