I finally decided it right.
This happens when eclipse starts with the JRE instead of the JDK, because tools.jar not in the JRE. Based on this statement, try installing the JDK. If it is already installed, check Path that you have a JDK path, not a JRE path.
Be careful, recent java versions seem to add the following directory to Path : C:\ProgramData\Oracle\Java\javapath . It contains shortcuts that can reference a JRE. You will want to remove this and add the link to the JDK bin folder. (e.g. C:\Program Files\Java\jdk1.8.0_66\bin )
Please note that you may need to restart your computer for Path changes to be effective for running eclipse (I don’t understand why I should have, but I did).
Also note that Java updates are likely to add javapath to your PATH again. Therefore, you can not use automatic updates, but instead manually update the JDK and adapt your path after installation. It's a little heavy, but it does the job.
source share