Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JetBrains OpenJDK 11 detection #82

Merged
merged 1 commit into from
Apr 15, 2020
Merged

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