有没有办法在Java应用程序中运行此命令行?
java -jar map.jar time.rel test.txt debug
我可以使用命令运行它,但是我无法在Java中运行它。
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("java -jar map.jar time.rel test.txt debug");
http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句