I've got an applet, which has to exec
a program on the same server.
Runtime c = Runtime.getRuntime();
window.finishedQuery("Got Runtime...");
Process p = c.exec(String.format("cmd");
window.finishedQuery("Excecuted CMD");
2nd line doesn't work in the browser, but in the Netbeans applet viewer it does.
window
is my applet, and it does show got runtime
but not excecuted CMD
.
In Google chrome I see the following message:
access denied ("java.io.FilePermission" "<<ALL FILES>>" "execute")
I guess the applet "thinks" that I want to get access to the users PC/programs, but I want to start a program on the server.
What do I have to do?