File mplayer_bin = new File(MplayerPath); if (mplayer_bin.exist()) { System.err.println("ok"); }