如何让系统重启?

try {

    Runtime currentApp = Runtime.getRuntime();

currentApp.exec(Param.getInstance().getReleaseRun());

} catch (Exception q) {

    q.printStackTrace();

}

try {

    Thread.sleep(3000);

System.exit(0);

} catch (Exception w) {

    w.printStackTrace();

}

你可能感兴趣的:(如何让系统重启?)