MaxPower
04/09/2018, 5:11 PMval jar = ToolProvider.findFirst("jar").orElseThrow()
jar.run(null, null, "--create", "file=strat-game.jar", "--main-class=view.StratGame", "-C", outputDirectoryName, ".")
and the JRE has the java.util.spi.ToolProvider
interface. In this interface it has int run(PrintWriter out, PrintWriter err, String... args);
and default int run(PrintStream out, PrintStream err, String... args) {
// some implementation code
}
in the same file