mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-03-07 17:36:52 +08:00
parent
bed74dc66c
commit
0f0f5cbc28
@ -218,7 +218,7 @@ public final class JavaVersion {
|
|||||||
public static final JavaVersion CURRENT_JAVA;
|
public static final JavaVersion CURRENT_JAVA;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
Path currentExecutable = getExecutable(Paths.get(System.getProperty("java.home")));
|
Path currentExecutable = getExecutable(Paths.get(System.getProperty("java.home")).toAbsolutePath());
|
||||||
try {
|
try {
|
||||||
currentExecutable = currentExecutable.toRealPath();
|
currentExecutable = currentExecutable.toRealPath();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user