Hi All,
I want to execute a jar file at runtime. I have used the following code. But it throws exception, Can any one tell me how to do that.
mycode is
--------------
{code}
import java.io.File;
public class FileExecution {
public static void main(
String args[]){
try {
Runtime runtime = Runtime.getRuntime();
runtime.exec("C:/Documents and Settings/pmr/Desktop/swingcallbackdemoapp.jnlp");
} catch (Exception e) {
e.printStackTrace();
}
}
}
{code}
Regards,
Mahes