• Register
0 votes
92 views

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

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

http://java.sun.com/developer/onlineTraining/Programming/JDCBook/appA.html

9 7 4
38,600 points

Related questions

0 votes
1 answer 13 views
13 views
Problem: Currently I have a shared access application. I have basic knowledge in VBA. I have created the accde file for a 32-bit machine but when user tries to open the application then he or she is getting a below security warning: “Microsoft office has identified a potential security concern.” I want to know the way to disable the above message from appearing to the users.
asked Aug 29 Raphael Pacheco 4.9k points
0 votes
0 answers 27 views
27 views
There is a 3d printing software by python computer is connect to printer via usb port and it sends data to printer by pyserial if any sniffer software sniffs it..i want to stop data sending to protect data
asked Oct 6, 2019 Genius Y
0 votes
1 answer 16 views
0 votes
1 answer 4 views
4 views
Problem : I have only fundamental knowledge related to security certificates. I am repeatedly facing a very annoying error message while trying to use the certificate to decrypt the data. Here I am trying to create the self-signed certificate as I need to use it to ... of time and efforts in trying to fix the above issue by myself. Can I programmatically grant the access to use this certificate?
asked Aug 8 Raphael Pacheco 4.9k points
2 votes
1 answer 29 views
29 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 stewart 4k points