fix #1905: fix path splicing (#1951)

This commit is contained in:
Glavo 2022-12-30 17:01:49 +08:00 committed by GitHub
parent bed74dc66c
commit 0f0f5cbc28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {