In Eclipse 2018-12, when the JDK 11 root directory is selected using the search button at Windows -->Preferences--Java--Installed JREs, Eclipse says "No JREs found". But JDK 11 can be added to the list of installed JREs by using the Add button. But when added what appears under the Name column of the Installed JREs box is JDK 11.0.2, not a JRE. When one goes through the search button and the root directory of JDK 8 is selected, the message that says no JREs is not displayed and its JRE is very smoothly added to the installed JREs list. For JDK 11, to be added to the list of installed JREs the Add button has to be used, not the search button. I would like to know what this means?
JDK 11 appears first in the Path variables of the user variables list. After JDK 11, appears JDK 8. Even if Java 11 is returned for the command java -version
Eclipse still says no JREs found in JDK 11. In the JDK 11.0.2 root folder, no jre folder is found.
Even though this question is marked as a duplicate, it's not so. This question is about why Eclipse is behaving in a certain way regarding JDK 11 that's different from its behaviour regarding JDK 8.