怎样用java调用系统计算器?

2025-03-02 16:44:03
推荐回答(1个)
回答1:

public class RunTimeTest{
public static void main(String[] args) throws Exception{
String f="系统计算器的路径";
Runtime r = Runtime.getRuntime();
r.exec("cmd /c start " + f);
}
}