Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

Commit 42bbef8

Browse files
committed
Update OpenJDK location for OpenJDK17 on windows
- VS installer start using a zip payload to install the OpenJDK on %programFiles%/Android/openjdk/jdk-*
1 parent 9c50a2d commit 42bbef8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/Xamarin.Android.Tools.AndroidSdk/Jdks/MicrosoftOpenJdkLocations.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class MicrosoftOpenJdkLocations : JdkLocations {
1212
internalstaticIEnumerable<JdkInfo>GetMicrosoftOpenJdks(Action<TraceLevel,string>logger)
1313
{
1414
returnGetMacOSSystemJdks("microsoft-*.jdk",logger)
15+
.Concat(GetWindowsFileSystemJdks(Path.Combine("Android","openjdk","jdk-*"),logger))
1516
.Concat(GetWindowsFileSystemJdks(Path.Combine("Microsoft","jdk-*"),logger))
1617
.Concat(GetWindowsRegistryJdks(logger,@"SOFTWARE\Microsoft\JDK","*",@"hotspot\MSI","Path"))
1718
.OrderByDescending(jdk =>jdk,JdkInfoVersionComparer.Default);

0 commit comments

Comments
 (0)