function ExecAndWait(){ var wshShell = new ActiveXObject("WScript.Shell"); wshShell.Run ("java.exe fichier class", 0, true); } ExecAndWait()