Is it possible to shutdown Windows programmatically with Java?
Cheers
Run the command "shutdown -s".
Edit: Something like this:
Process p = Runtime.getRuntime().exec("shutdown -s");