static IEnumerable <JdkInfo> GetWindowsJdks(Action <TraceLevel, string> logger) { if (!OS.IsWindows) { return(Enumerable.Empty <JdkInfo> ()); } return(AndroidSdkWindows.GetJdkInfos(logger)); }
internal static string?GetWindowsPreferredJdkPath() { var wow = RegistryEx.Wow64.Key32; var regKey = AndroidSdkWindows.GetMDRegistryKey(); if (RegistryEx.CheckRegistryKeyForExecutable(RegistryEx.CurrentUser, regKey, AndroidSdkWindows.MDREG_JAVA_SDK, wow, "bin", "java.exe")) { return(RegistryEx.GetValueString(RegistryEx.CurrentUser, regKey, AndroidSdkWindows.MDREG_JAVA_SDK, wow)); } return(null); }