Java tutorial
//package com.java2s; import java.io.IOException; public class Main { public static void rebootDevice() { String cmd = "reboot -p"; try { Runtime.getRuntime().exec(cmd); } catch (IOException e) { } } }