Runtime.exec() can allow potentially malicious code to be executed. As such, several restrictions are placed on it to help protect your
system.
Only station super users can add and edit Program objects. In
Program objects can no longer directly call Runtime.getRuntime().exec(command). Instead, a wrapper called ProgramRuntime behaves the same way as java.lang.Runtime, except that it takes the Program object as an additional parameter. Commands executed by ProgramRuntime are logged and audited.
Additionally, to enable the use of ProgramRuntime, the hidden slot allowProgramRuntimeExec on the station’s ProgramService must be set to true.
ProgramRuntime.exec(). Program objects that have been compiled into Program Modules cannot call this function.
An example of this in Program code is below
Runtime.getRuntime().exec(“notepad.exe”);
ProgramRuntime.getRuntime().exec(this, “notepad.exe”);