Java中执行.exe文件

    public static void main(String args[]){
        try {
            String command ="notepad"; // 笔记本
            Process child = Runtime.getRuntime().exec(command);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
原文地址:https://www.cnblogs.com/pangpanghuan/p/6515664.html