Anyone knows how to execute a cmd file in java environment. The scenario as follows, i need to perform backup and recovery using OS command (xcopy 'source' 'destination' /s /i), so i write the command and save it as backup.cmd.I am able to run that file outside java environment, but the problem is i am not able to call and execute it within java environment.And i always get error message as follows:
java.security.AccessControlException: access denied (java.io.FilePermission C:j2sdkee1.3.1public_htmlcmd.exe execute
Should anyone know how to solve this problem please reply asap...
Or anyone knows how to perform online backup and recovery in java environment may post it as well...
Thanks in advance..