• Register
0 votes

Problem :

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

java.security.AccessControlException:Access denied
6 5 3
6,930 points

Please log in or register to answer this question.

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


9 7 4
38,600 points

Related questions

0 votes
1 answer 1 view
1 view
Problem: I need someone&rsquo;s help to fix it ..Application blocked by security settings java chrome
asked Mar 17 Ifra 24.4k points
0 votes
1 answer 5 views
Problem: Hello ... Can anyone tell me that why I got this error? your security has blocked a self-signed application from running
asked Mar 31 Ifra 24.4k points
0 votes
1 answer 3 views
Problem: How can I solve this? .. java create file if not exists
asked Mar 25 Ifra 24.4k points
0 votes
1 answer 8 views
Problem: Please solve it &hellip; Because I am unable to find out the solution
asked Mar 14 Ifra 24.4k points
1 vote
1 answer 24 views
Problem: Trying to sign my Android app . When I generate the keystore, I get an access denied error. How do I fix this? keytool error: java.io.filenotfoundexception: my-release-key.keystore (access is denied)
asked Feb 23 Sofia Castro 4.2k points
2 votes
1 answer 83 views
Problem : I am learning to host my site on IIS. I am facing below error while trying to host my Asp.net site with the IIS. IIS cannot read configuration file due to insufficient permissions . Please find below the current contents of my web.config file: <?xml version ... research on above error but I am still unable to fix the hosting error. I am looking for the help in fixing the hosting error.
asked May 7, 2020 stewart 4k points
0 votes
1 answer 22 views
Problem: How can I check whether a file exists, before opening it for reading in Java (the equivalent of Perl's -e $filename)?
asked Mar 10 ummesalma 22k points
0 votes
1 answer 2 views
Problem: I am asking for guidance for providing security in rest web services.
asked 19 hours ago zayed1 24.7k points
0 votes
2 answers 2 views
Problem: Can anyone offer some advice as to what is causing the problem? &ldquo;your current security settings do not allow&rdquo;
asked 1 day ago anika11 1.2k points
0 votes
1 answer 3 views
Problem: I'm having trouble finding a solution; could you please assist me &ldquo;Your security setting have blocked a self-signed application from running&rdquo;?
asked Mar 29 tuhin1 46.8k points