package com.tjpu.helen.test;
public class RunExe {
public static void main(String[] args) {
Runtime rn = Runtime.getRuntime();
Process p = null;
try {
String str = "\"C:/DbVisualizer-6.0.7/DbVisualizer-6.0.7/dbvis.exe\"";
p = rn.exec(str);
} catch (Exception e) {
System.out.println("Error to run the exe");
}
}
}
java调用Exe文件
最新推荐文章于 2024-07-01 11:56:43 发布