• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error using FileInputStream acces denied  RSS feed

 
Fernando Skackauskas
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Helo guys,

I have a problem:

I am getting a binary file via applet in my Java prgramm. However, the following error occurs when I read this file by java.io.FileInputStream:

java.security.AccessControlException:access denied("java.io.FilePermission""[object File]""read")

How to troubleshoot?

Kind regards.
 
Paul Clapham
Sheriff
Posts: 22817
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You troubleshoot applets by looking at the applet console. Here's an explanation from Oracle: https://www.java.com/en/download/help/javaconsole.xml

My guess is that you haven't signed your applet, and that's why you can't access files on the local file system.
 
Mauro Trevigno
Ranch Hand
Posts: 99
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You already edit you java.policy file?

Default Policy

Google java policy for applet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!