are you going to kill some processes? the error you supplied is quite intuitive. Its to do with permissions...make sure the user running the program have the permission to do more privileged tasks other than read (eg kill a process ). If the process is started by say, SYSTEM, a normal user will not be able to kill it...