Run Java program into another Program [duplicate]
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Execute another jar in a java program I try to run a jar file of with a java application from within another java application, but I cannot get it to work. My code is below // run Jar in other java application Runtime run=Runtime.getRuntime(); run.exec("java -jar ManichemManagerRotas BatchProcess 8 2012"); I try to run manichemmanagerrotas.jar with three arguments. all method i can do it but it cannot work still