只有调用系统命令了Runtime rt = system.getRuntime();rt.exec("doc 命令");例如结束mysql服务:rt.exec("net stop mysql");打开微软自带的计算器:rt.exec("calc.exe);大致是这样的。