If there are two versions of JDK or JRE installed on a system, one with the new version-string format introduced in JDK 10, and the other with the older version format, then there will be two different CurrentVersion registry key values.
HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Web Start\ RuntimeLib: the full path name of the Java runtime DLL JavaHome: the full path name of the directory in which the JRE is installed This key contains the following string values: