Runtime rt = Runtime.getRuntime();try { Process processname = rt.exec("cls"); }catch(IOException e){ e.printStackTrace()}