From e69a62254562cd56ef7d2e57900c053b9ce595e5 Mon Sep 17 00:00:00 2001 From: Weby Date: Sat, 28 Mar 2020 14:19:18 +0100 Subject: [PATCH] Made this work without the need for Oracle JDK --- Quark/pom.xml | 1 - .../main/java/xorTroll/goldleaf/quark/fs/FileSystem.java | 9 +++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Quark/pom.xml b/Quark/pom.xml index 03b239f9..1804e097 100644 --- a/Quark/pom.xml +++ b/Quark/pom.xml @@ -22,7 +22,6 @@ - org.openjfx javafx-controls diff --git a/Quark/src/main/java/xorTroll/goldleaf/quark/fs/FileSystem.java b/Quark/src/main/java/xorTroll/goldleaf/quark/fs/FileSystem.java index 3d7b2ea7..9292a70a 100644 --- a/Quark/src/main/java/xorTroll/goldleaf/quark/fs/FileSystem.java +++ b/Quark/src/main/java/xorTroll/goldleaf/quark/fs/FileSystem.java @@ -29,15 +29,12 @@ import java.nio.file.Paths; import java.util.Vector; -import com.sun.javafx.PlatformUtil; - public class FileSystem { public static final String HomeDrive = "Home"; - - public static boolean isWindows() - { - return PlatformUtil.isWindows(); + + public static boolean isWindows() { + return System.getProperty("os.name").toLowerCase().contains("win"); } public static Vector listDrives()