Access denied ("java.lang.RuntimePermission") Follow
Problem: When starting to record, the recording toolbar buttons are disabled and the Java applet console displays the following error:
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "...")
Solution: Add permissions to java.policy file.
These additional permissions are required starting from Java 8.
Go to the Java installation directory: <java installation>/lib/security/java.policy
On a Dev machine with multiple java versions, you should look for the file in the latest 32bit jre* installation: e.g. C:/Program Files (x86)/Java/jre1.8.0_221/lib/security/java.policy
(the Program Files (x86)/Java/jre, not the Program Files (x86)/Java/jdk/jre)
Append the following at the end of the file :
grant {
permission java.net.SocketPermission "127.0.0.1:4444", "accept, connect, listen, resolve";
permission java.net.SocketPermission "127.0.0.1:4445", "accept, connect, listen, resolve";
permission java.net.SocketPermission "127.0.0.1", "accept, connect, listen, resolve";
permission java.io.FilePermission "<<ALL FILES>>", "read, write, delete, execute";
};
grant {
permission java.security.AllPermission;
permission java.util.PropertyPermission "java.security.policy", "write";
};
Note: If it is not possible to change the java.policy file (due to permissions issues), please perform the following:
1. Copy the java.policy file to shared folder, and make the above changes
2. In the Java console->Java tab->View->Java x86->Runtime Parameters set the following:
-Djava.security.policy=<filePath>\java.policy
3. Click OK
Comments
0 comments
Please sign in to leave a comment.