diff --git a/src/main/java/com/skcraft/launcher/launch/JavaProcessBuilder.java b/src/main/java/com/skcraft/launcher/launch/JavaProcessBuilder.java index 893f0d2..bafd663 100644 --- a/src/main/java/com/skcraft/launcher/launch/JavaProcessBuilder.java +++ b/src/main/java/com/skcraft/launcher/launch/JavaProcessBuilder.java @@ -6,8 +6,6 @@ package com.skcraft.launcher.launch; -import com.skcraft.launcher.util.Environment; -import com.skcraft.launcher.util.Platform; import lombok.Getter; import lombok.Setter; import lombok.ToString; @@ -81,7 +79,7 @@ public class JavaProcessBuilder { public List buildCommand() { List command = new ArrayList(); - if(Environment.getInstance().getPlatform() == Platform.WINDOWS) { + if(getJvmPath() != null) { command.add(getJvmPath() + File.separator + "java"); } else { command.add("java");