I am trying to access the temp client folder through my applet in my web project.
When I run the applet on its own, it gets tempdir without any problems.
When I try to get it in my project using javascript and calling the applet method, I have an accessControlException in my javascript console. I also get the same exception when I try to read a file in the temp directory.
This is what I see for sure:
java.security.accesscontrolexception access denied (java.util.propertypermission java.io.tmpdir read) java.security.accesscontrolexception access denied (java.io.filepermission read)
How to solve java.security.AccessControlException ?
source share