Hi there,
I want to execute a jar from my own java application. (it's impossible to import that jar a library and start the app as an instance of my own "launcher"). To execute a jar from my own java app...I am using the next lines:
String [] cmd = new String [] {"java","-jar","myjar.jar"};
Process process = Runtime.getRuntime().exec(cmd, null, null);
This perfectly works. I have no complains about this.
My question is this: does this have the same performance as executing that jar by "java -jar myjar.jar" in the command line? Or is it worse?? If worse...any suggestion about can I do this with the same performance???
Thanks in advanced