循环调用Linux命令解压rar文件,为何只有第一次成功?之后循环终止

我用下面代码进入解压rar文件,循环调用,但第一次解压后(解压成功),循环终止,好像整个进程都结束了(项目里的其他定时器这时都不起作用了),是什么问题??

/**调用Linux 的命令完成对rar的解压
  * run("unrar e "+sourceRar+" "+destDir);
  * */
 public static String run(String command) throws IOException {
  Scanner input = null;
  String result = "";
  Process process = null;
  try {
   process = Runtime.getRuntime().exec(command);
   try {
    // 等待命令执行完成
    process.waitFor();
   } catch (InterruptedException e) {
    e.printStackTrace();
    try{  
     process.getErrorStream().close();  
     process.getInputStream().close();  
     process.getOutputStream().close();  
          }  
          catch(Exception ee){}  
   }

  } finally {
   if (input != null) {
    input.close();
   }
   if (process != null) {
    process.destroy();
   }
  }
  return result;
 }

解决了,使用unrar e解压时,如果存在已有文件,则解压询问是否覆盖,所以进程一直挂在那里。
换成unrar e -o+即可