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

Attempt to fix Unix support

This commit is contained in:
Ton Broekhuizen 2014-01-11 16:16:12 +01:00
parent 58d82cea0a
commit 3a101dab73

View File

@ -6,6 +6,8 @@
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;
@ -79,7 +81,11 @@ public class JavaProcessBuilder {
public List<String> buildCommand() {
List<String> command = new ArrayList<String>();
if(Environment.getInstance().getPlatform() == Platform.WINDOWS) {
command.add(getJvmPath() + File.separator + "java");
} else {
command.add("java");
}
for (String flag : flags) {
command.add(flag);