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 problem is cannot run jar file's main method class if you have any idea of this problem,plz give me replay me it's important task for me
i try to run jar file then error is that :Unable to access jarfile ManichemManagerRotas