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.
Context
It simply finds the first available JDK in below order:
Steps
Now since it requires JDK 11+, a broken case is:
java.homenot set (for most new users)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.