Shutdown windows system in Java by import java.io.IOException; public class Test { public static void main(String[] args) { try { Runtime.getRuntime().exec("c:\\Windows\\System32\\shutdown -s -t 0"); } catch (IOException e) { e.printStackTrace(); } } }import java.io.IOException; public class Test { public static void main(String[] args) { try { Runtime.getRuntime().exec("c:\\Windows\\System32\\shutdown -s -t 0"); } catch (IOException e) { e.printStackTrace(); } } } Please Share