From c6aa378bc898aa2b33676b4d510554d5d0e44fbf Mon Sep 17 00:00:00 2001 From: Ton Broekhuizen Date: Sat, 11 Jan 2014 16:39:59 +0100 Subject: [PATCH] Polished the fix a bit. --- .../java/com/skcraft/launcher/launch/JavaProcessBuilder.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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");