Skip to content

potential failure of activation when JDK <11 is also installed #1621

@Eskibear

Description

@Eskibear

Context

It simply finds the first available JDK in below order:

Steps

Now since it requires JDK 11+, a broken case is:

  • both JDK 8 and JDK 11 installed
  • java.home not set (for most new users)
  • JAVA_HOME points to JDK 8

It will pick JDK 8, and request users to install JDK 11+.

Possible solution

Add new options to find-java-home, like minVersion (requires the library to check version), or request the library to return all possible java homes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions