Friday, 15 April 2011

java - How to use Runtime.getRuntime().exec in a web Applet to execute a jar file -



java - How to use Runtime.getRuntime().exec in a web Applet to execute a jar file -

so tried start notepad self signed applet in browser. works fine

runtime.getruntime().exec("notepad");

but if want start jar file

runtime.getruntime().exec("java -jar acceleration_de.jar");

it works if execute jar directly. if open applet in browser did started notepad doesn't work. why?

i have suspicion somehow because applet located somewhere different jar if executed in browser. in same filepath of course.

any thought how can start jar anyway?

java jar applet

No comments:

Post a Comment