java.security.AccessControlException: access denied (java.io.FilePermission outputFile.txt write)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Coderanch by Raghavan Muthu, 1 year ago
access denied (java.io.FilePermission outputFile.txt write)
via oracle.com by Unknown author, 1 year ago
access denied (java.io.FilePermission characteroutput.txt write)
via oracle.com by Unknown author, 2 years ago
access denied (java.io.FilePermission characteroutput.txt write)
via Oracle Community by 807607, 1 year ago
access denied ( java.io.FilePermission C:\Documents and Settings\...ReadOnlyTest.txt write)
via fit.edu by Unknown author, 1 year ago
access denied (java.io.FilePermission test.txt write)
via Oracle Community by 843802, 1 year ago
access denied (java.io.FilePermission testWrite.txt write)
java.security.AccessControlException: access denied (java.io.FilePermission outputFile.txt write)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkWrite(SecurityManager.java:962)
at java.io.FileOutputStream.(FileOutputStream.java:169)
at java.io.FileOutputStream.(FileOutputStream.java:70)
at java.io.FileWriter.(FileWriter.java:46)
at undefined.AppletDemo.writeToFile(AppletDemo.java:78)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 2 years ago
Once, 5 hours ago
Samebug visitor profile picture
Unknown user
Once, 4 days ago
Once, 4 months ago
Once, 4 months ago
75 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.