Is it possible to shutdown Windows programmatically with Java?
Cheers
If you want to shutdown it in certain time append -t parameter (in seconds).
For five seconds:
String shutdownCmd = "shutdown -s -t5";