try {
        Runtime r = Runtime.getRuntime();
        Process p = r.exec("regedit.exe");
    } catch (Exception ex) {
    }
呵呵
开个玩笑
不知道对你有没有启发