Re: blocking another application from starting



this bit will do step 2
try
{
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("C:\\windows\\system32\\taskkill.exe
/F /IM winword.exe");
int exitVal = proc.waitFor();
System.out.println("Process exitValue: " + exitVal);
} catch (Throwable t)
{
t.printStackTrace();
}

.