Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AccessControlException applet not inited

 
supriya riya
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting following error on running my html file in which i have called the applet



java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at net.sf.jftp.config.Settings.<clinit>(Settings.java:28)


I have written the .class file correctly in the code attribute used in applet tag.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many things applets aren't allowed to do, including reading the "user.home" property, just like the error message says. See http://www.securingjava.com/chapter-two/ for more detail.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic