Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

applet permissions 1

Status
Not open for further replies.

chessbot

Programmer
Mar 14, 2004
1,524
US
I created a class using JFrames that accesses a class that reads, writes, and creates files. I have now created an almost identical file, except that I extended JApplet instead of JFrame and use init() instead of a constructor.
Now, whenever I try to interact with the files through the same class as before, I get the following exception:
Code:
java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
How can I allow the applet to read the file?

Thanks!

--Chessbot

There is a level of Hell reserved for probability theorists in which every monkey that types on a typewriter produces a Shakespearean sonnet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top