player.play();
try { player.play(); } finally {   player.close(); }
  private void playFile(File file) throws Exception {    if (externalPlayer.length() != 0) {      playerProcess = Runtime.getRuntime().exec(new String[] { externalPlayer, file.getPath() });      try {        playerProcess.waitFor();        if (playerProcess.exitValue() != 0)           throw new Exception("extern player returned " + playerProcess.exitValue());      }      catch (InterruptedException e) {      }    }    else {      player = new Player(new BufferedInputStream(          new FileInputStream(file), 2048));      player.play();      player = null;    }  }