You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 13, 2026. It is now read-only.
Repository navigation
Commit dca30d9
Browse filesBrowse the repository at this point in the historyBrowse files
[Xamarin.Android.Tools.AndroidSdk] Probe for Zulu JDK (#114)
Context: https://www.azul.com/downloads/zulu-community/
Commit 237642c removed support for the ancient
`microsoft_dist_openjdk_*` versions, replacing it with the newer
[Microsoft OpenJDK][0].
One problem with this change is one of *compatibility*:
`microsoft_dist_openjdk_` was a build of JDK 1.8, while
Microsoft OpenJDK only provides builds for JDK 11 and later.
This is a problem, as the [Visual Studio Android Designer][1]
currently requires JDK 1.8, and is not yet compatible with JDK 11.
Add support to probe for for [Azul Zulu OpenJDK][2] installation
directories, as Zulu provides updated JDK 1.8 installers.
Additionally, refactor and centralize the JDK Location logic.
Previously, `JdkInfo.GetKnownSystemJdkInfos()` would return all of
the Windows installation locations before the macOS/Linux/etc.
locations, which made it possible for Windows and non-Windows
platforms to return paths in an inconsistent order. Introduce a new
`JdkLocations` helper, and add new subclasses for each specific JDK
location, so that `JdkInfo.GetKnownSystemJdkInfos()` can be *unified*
across macOS/Linux & Windows, increasing consistency.
Add a new `tools/ls-jdks` tool, to make it easier to print all probed
JDK locations.
[0]: https://www.microsoft.com/openjdk
[1]: https://docs.microsoft.com/en-us/xamarin/android/user-interface/android-designer/designer-walkthrough?tabs=windows
[2]: https://www.azul.com/downloads/zulu-community/?package=jdk
thrownewNotSupportedException("No Microsoft OpenJDK could be found. Please re-run the Visual Studio installer or manually specify the JDK path in settings.");
0 commit comments