jerry
08-07-2000, 02:11 PM
Can I call Runtime.getRuntime().exex(cmd) in an applet? If yes, how to
do it?
I wrote an applet which should allow user to run some program on the
server. however I always got an "appletsecurity: checkexec " error.
Here is my code :
init(){
button4.addActionListener(this);
}
ActionPerformed(e){
if (e.getSource() == button4){
runScript() ;
}
}
public void runScript(){
try(Runtime.getRuntime().exec(script) ;}
catch(exception e){
system.err.println(e.toString) ;
}
}
do it?
I wrote an applet which should allow user to run some program on the
server. however I always got an "appletsecurity: checkexec " error.
Here is my code :
init(){
button4.addActionListener(this);
}
ActionPerformed(e){
if (e.getSource() == button4){
runScript() ;
}
}
public void runScript(){
try(Runtime.getRuntime().exec(script) ;}
catch(exception e){
system.err.println(e.toString) ;
}
}