Skip to content

Conversation

@grendello
Copy link
Contributor

OpenJDK from JetBrains does not have the jre directory which, so far,
has been required by the JdkInfo class. Instead, there's just the
lib directory which should be searched for the JVM libraries instead
of jre.

Modify JdkInfo so that it first checks the jre directory and,
failing to find it, looks for the lib directory in the OpenJDK
installation root.

The changes make Xamarin.Android.Tools detect JetBrains OpenJDK 11
properly.

OpenJDK from JetBrains does not have the `jre` directory which, so far,
has been required by the `JdkInfo` class.  Instead, there's just the
`lib` directory which should be searched for the JVM libraries instead
of `jre`.

Modify `JdkInfo` so that it first checks the `jre` directory and,
failing to find it, looks for the `lib` directory in the OpenJDK
installation root.

The changes make Xamarin.Android.Tools detect JetBrains OpenJDK 11
properly.
@jonpryor jonpryor merged commit 36d7fee into dotnet:master Apr 15, 2020
@grendello grendello deleted the openjdk11 branch April 15, 2020 18:57
jonpryor pushed a commit that referenced this pull request Apr 22, 2020
Context: https://bintray.com/jetbrains/intellij-jdk/openjdk11-osx-x64

OpenJDK 11 from JetBrains does not have the `jre` directory which, so
far, has been required by the `JdkInfo` class.  Instead, there's just
the `lib` directory which should be searched for the JVM libraries
instead of `jre`.

Modify `JdkInfo` so that it first checks the `jre` directory and,
failing to find it, looks for the `lib` directory in the OpenJDK
installation root.

These changes allow Xamarin.Android.Tools tp detect
JetBrains OpenJDK 11 properly.
jonpryor pushed a commit that referenced this pull request Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants