[FIX] Java search in Windows

This commit is contained in:
Gravit 2021-07-14 00:09:08 +07:00 committed by GitHub
parent f9c644ff4e
commit 7ad308cc23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,7 +140,7 @@ public static String getIP(SocketAddress address) {
public static Path getRoot() { public static Path getRoot() {
switch (JVMHelper.OS_TYPE) { switch (JVMHelper.OS_TYPE) {
case MUSTDIE: { case MUSTDIE: {
String drive = System.getenv("SystemDrive"); String drive = System.getenv("SystemDrive").concat("\\");
return Paths.get(drive); return Paths.get(drive);
} }
case LINUX: case LINUX: