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";
};
Comments
0 comments
Please sign in to leave a comment.