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
[Xamarin.Android.Tools.AndroidSdk] JdkInfo + JDK11 + Windows (#88)
Context: dotnet/android#4567
Commit 36d7fee added support for JetBrains OpenJDK 11 detection on
macOS and Linux.
Lacking was *Windows* support for JetBrains OpenJDK 11, because of
course it has to be different.
In particular, OpenJDK 11 *moves the `jvm` library* for Windows.
We checked for it in `{HomePath}\jre\**\jvm.dll` or
`{HomePath}\lib\**\jvm.dll`, but neither of those exist. Instead,
OpenJDK 11 has `jvm.dll` in `{HomePath}\bin\server\jvm.dll`, which is
also the only `.dll` file in the `.tar.gz` which exports the symbol
`JNI_CreateJavaVM`.
Update `JdkInfo` so that it looks for `{HomePath}\bin\server\jvm.dll`
to populate `JdkInfo.JdkJvmPath`.
0 commit comments