public static String mainArgs(MonitoredVm vm) throws MonitorException {
  String commandLine=commandLine(vm);
  int firstSpace=commandLine.indexOf(' ');
  if (firstSpace > 0) {
    return commandLine.substring(firstSpace + 1);
  }
 else   if (commandLine.compareTo("Unknown") == 0) {
    return commandLine;
  }
 else {
    return null;
  }
}

public static String mainArgs ( MonitoredVm vm ) throws MonitorException { String commandLine = commandLine ( vm ) ; int firstSpace = commandLine . indexOf ( ' ' ) ; if ( firstSpace > 0 ) { return commandLine . substring ( firstSpace + 1 ) ; } else if ( commandLine . compareTo ( "Unknown" ) == 0 ) { return commandLine ; } else { return null ; } }
return the arguments to the main class for the target java application . returns the arguments to the main class . if the arguments can ' t be found , the string " unknown " is returned .
