public function launch($file, array $arguments, &$output)
 {
     /// Supplied file path must point to JAR archive with defined main class.
     if (!file_exists($file)) {
         return 'File ' . $file . ' doesn\'t exist or cannot be read';
     }
     $java = Config::get('bin', 'java');
     $arguments = ShellUtils::makeShellArguments($arguments);
     $output = `"{$java}" -Dfile.encoding=UTF-8 -jar "{$file}" {$arguments}`;
     return false;
 }
 public function launch($file, array $arguments, &$output)
 {
     /// Supplied file path must point to an executable.
     if (!file_exists($file)) {
         return 'File doesn\'t exist or cannot be read';
     }
     $file = realpath($file);
     $arguments = ShellUtils::makeShellArguments($arguments);
     $output = `"{$file}" {$arguments}`;
     return false;
 }