private void startRunner() throws ExitCodeException {
  checkFileToRun();
  IRunnerDescriptor rd=checkRunner();
  try {
    Process process=runnerFrontEnd.run(rd.getId(),implementationId,systemLoader,fileToURI(runThisFile));
    int exit=process.waitFor();
    if (exit != 0) {
      throw new ExitCodeException(EXITCODE_RUNNER_STOPPED_WITH_ERROR,"The spawned runner '" + rd.getId() + "' exited with code="+ exit+ explanationOfExitCode(exit));
    }
  }
 catch (  Exception e1) {
    e1.printStackTrace();
    throw new ExitCodeException(EXITCODE_RUNNER_STOPPED_WITH_ERROR,"The spawned runner exited by throwing an exception",e1);
  }
}

private void startRunner ( ) throws ExitCodeException { checkFileToRun ( ) ; IRunnerDescriptor rd = checkRunner ( ) ; try { Process process = runnerFrontEnd . run ( rd . getId ( ) , implementationId , systemLoader , fileToURI ( runThisFile ) ) ; int exit = process . waitFor ( ) ; if ( exit != 0 ) { throw new ExitCodeException ( EXITCODE_RUNNER_STOPPED_WITH_ERROR , "The spawned runner '" + rd . getId ( ) + "' exited with code=" + exit + explanationOfExitCode ( exit ) ) ; } } catch ( Exception e1 ) { e1 . printStackTrace ( ) ; throw new ExitCodeException ( EXITCODE_RUNNER_STOPPED_WITH_ERROR , "The spawned runner exited by throwing an exception" , e1 ) ; } }
actually start the requested file with the chosen runner . workspace from headlescompiler should be configured before calling this method .
