Many other answers tell you to point your Eclipse to a JDK instead of a JRE.
Here is another answer with more specific/clear [than I have seen in any answer here] step-by-steps on how to do that: How do you install JDK?
That is what for solved me for this same problem.