I am trying to compile code checked out of SVN from another developer. Eclipse has been giving me a lot of trouble lately.
Here are my project-specific settings:
Maybe you need to use JDK JRE which is located at C:\Program Files\Java\jdk\jre, not public
You can try to copy tools.jar
from jdk/jre
to common/lib
of tomcat.
It worked for me as demonstrated here
Changing the tools.jar in eclipse to the correct version fixed it. I was using jre 1.6 and had to change it to use 1.8 to get the class file in version 52.