private Process startProcess ( String id , Class < ? > klass , String [ ] javaArguments , String [ ] processArguments , boolean withConfirmation ) throws IOException , InterruptedException { List < String > arguments = createCommandLineForProcess ( klass , javaArguments , processArguments ) ; Process process = new ProcessBuilder ( arguments ) . start ( ) ; redirectProcessStreams ( id , klass , process , ! withConfirmation ) ; return process ; }
Starts process based on specified class using command line arguments . This process inherits a classpath from parent VM that starts it .