public static void main(String[] args) {
try {
Process proc = Runtime.getRuntime().exec("taskkill /IM iexplore.exe");
while (proc.getInputStream().read() != -1) ;
while (proc.getErrorStream().read() != -1) ;
proc.waitFor();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}