title: Eclipse Target is not a JDK root. Java executable was not found
body: <p>I am trying to add jdk 1.8 to eclipse Windows -&gt; preferences -&gt; installed JRE. I get the following error msg:</p>
  <p><code>Eclipse Target is not a JDK root. Java executable was not found</code></p>
  <p>How to fix this issue?
  <a href="https://i.stack.imgur.com/JnqEv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JnqEv.png" alt="enter image description here" /></a></p>