• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes

Problem :

I am trying to create a file in a folder but I am getting exception as

java.security.AccessControlException:Access denied
by (6.9k points)  

1 Answer

0 votes

Solution :

Please try adding

<jre location>\lib\security\java.policy

grant { permission java.security.AllPermission; };

And check if it allows you. If allowed then you will have to add more permissions.

Further Readings:

Java 8 Documentation for java.policy files


by (33.3k points)  
edited by