Fix for JDK-8259215 is incomplete. The following use case is not working properly:
1. Install jdk15
2. Install jre8
3. Uninstall jdk15
Expected result: "java - version" prints version of installed jre8. Actual result: java command not found. No javapath in PATH env variable.
Suggested fix is to revert JDK-8259215 and rework AddjavapathDirToSystemPathVariable() function from JavaPath.cpp to insert jdk8's javapath entry after jdk15's javapath entry if there is one in PATH.