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:
parent
58d82cea0a
commit
3a101dab73
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user