1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-24 12:16:28 +01:00

Polished the fix a bit.

This commit is contained in:
Ton Broekhuizen 2014-01-11 16:39:59 +01:00
parent 3a101dab73
commit c6aa378bc8

View File

@ -6,8 +6,6 @@
package com.skcraft.launcher.launch; package com.skcraft.launcher.launch;
import com.skcraft.launcher.util.Environment;
import com.skcraft.launcher.util.Platform;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import lombok.ToString; import lombok.ToString;
@ -81,7 +79,7 @@ public class JavaProcessBuilder {
public List<String> buildCommand() { public List<String> buildCommand() {
List<String> command = new ArrayList<String>(); List<String> command = new ArrayList<String>();
if(Environment.getInstance().getPlatform() == Platform.WINDOWS) { if(getJvmPath() != null) {
command.add(getJvmPath() + File.separator + "java"); command.add(getJvmPath() + File.separator + "java");
} else { } else {
command.add("java"); command.add("java");