Java Runtime loading changes

Allow changing Java Runtime with JAVA_HOME environment variable.
Support Java 8 libjli location (`lib/jli` instead of `lib`).
This commit is contained in:
Duy Tran Khanh committed 2021-07-01 12:52:59 +07:00
1 parent e81c5937c4
commit 7ac5f2d163
2 files changed
+29 -12

No files matched your search

@@ -63,7 +63,7 @@ public final class Tools
public static final String DIR_ACCOUNT_NEW = DIR_APP_DATA + "/accounts";
// New since 3.0.0
public static String DIR_HOME_JRE = "/usr/lib/jvm/java-16-openjdk";
public static String DIR_HOME_JRE = System.getProperty("java.home");
public static String DIRNAME_HOME_JRE = "lib";
// New since 2.4.2