I am using
Runtime.getRuntime().exec("cmd /c REG ADD HKEY_CURRENT_USER\\SOFTWARE\\MICROSOFT\\WINDOWS\\CURRENTVERSION\\POLICIES\\SYSTEM /v DisableTaskMgr /t REG_DWORD /d 1 /f");
This is a slow process.
though it added the registry key, but it went into long sleep, as if infinite loop.
similarly for Deleting the registry key.
Can anybody tell me the reason for the same.
Thanks Rajul Konkar