```val jar = ToolProvider.findFirst("jar").orElseT...
# getting-started
m
Copy code
val 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
Copy code
default int run(PrintStream out, PrintStream err, String... args) {
   // some implementation code
    }
in the same file