[英]Open Cmd with a jar file and execute the program
嗨,我想从 NetBeans 的 jar 文件中打开 mi cmd 程序
我们将程序称为“Super_Program”。 The program should be run on the cmd but I have a jar file so how can I open cmd from a code in the jar file that also executes it
使用ProcessBuilde在 OS 上执行命令,请参阅此示例How to execute shell command from Java
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.