check for jre takes management dylib into account for jdk >= 9 installs in case the jmod is not there

This commit is contained in:
Martin Lippert
2020-09-08 13:28:35 +02:00
parent e801ab5a89
commit 0f5d6f5432

View File

@@ -110,7 +110,8 @@ public class JRE {
* java home is a JDK.
*/
private static final String JMOD_PATHS[] = {
"jmods/jdk.management.jmod"
"jmods/jdk.management.jmod",
"lib/libmanagement.dylib"
};
private static boolean javaVersionNeedsToolsJar() {