Project: appceleratorstudio
Issue TISTUD-6291: Windows: Studio installer does not recognize the installed JDK
Even though a JDK version is already installed on the Windows machine (could it be 64-bit or IBM Java or Java 8), at times, Studio doesn't recognize the existing Java installation and tries to install it again. Since we are currently looking at the registry for finding Java installation path, if Java is not installed through standard means or a different variant of Java is installed (such as IBM Java, or a different arch), there is a chance that the registry is not updated with the expected values. In that case, Studio will fail to recognize the installed Java version. We need to fall back looking to PATH env variable for java/javac executable (as we are more keen to have JDK installation) if the registry lookup fail to return a valid Java executable.
Story points: 8