我的问题是,我从ProcessBuilder开始的进程阻止了我想用扫描器读取的控制台中的输入。有可能改变它吗?
这是我如何创建流程:
String dir = "BungeeCord";
String name = "BungeeCord.jar";
if (bcprocesse == null) {
ProcessBuilder pb = new ProcessBuilder();
pb.directory(new File("MineCloud/" + dir));
pb.command("java", "-Xms512M", "-Xmx2048M", "-jar", name);
try {
bcprocesse = pb.start();
} catch (IOException e) {
e.printStackTrace();
}
System.out.println(AnsiColor.GREEN + dir + " wurde erfolgreich gestartet.");
} else
System.out.println(AnsiColor.RED + dir + " ist bereits gestartet.");
提前致谢。