how to run a jar file from jsp?
Posted on 2004-04-21
i have a jar file(test.jar) this jar file contains
for ex : one.java ,two.java,three.java .
my question is i would like to run this jar file from jsp(web).?how?
i want to have a link on jsp and when i click on the link i want to run this jar file.
as far as i know to run a dos command like below
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("c:\\test.jar");
but i am unsucessfull to run this jar file on web(jsp).
any help will be greatly appreciated.
advance thanks a million.