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