AccessControlException is thrown

i got a test certificate signed for my applet...but still on running my code with File.mkdir() in it ....AccessControlException is thrown

java.security.AccessControlException: access denied (java.io.FilePermission C:\JavaChat\ContactDetails write)

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)

at java.security.AccessController.checkPermission(AccessController.java:401)

at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)

at java.lang.SecurityManager.checkWrite(SecurityManager.java:954)

at java.io.File.mkdir(File.java:1097)

at CreateContactsFile.<init>(CreateContactsFile.java:33)

at MenuFunction.actionPerformed(MenuFrame.java:159)

at java.awt.Button.processActionEvent(Button.java:382)

at java.awt.Button.processEvent(Button.java:350)

at java.awt.Component.dispatchEventImpl(Component.java:3615)

at java.awt.Component.dispatchEvent(Component.java:3477)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

[1478 byte] By [harsha77bhat96a] at [2007-10-1 21:46:45]
# 1

Please do not double post, if some poor programmer is looking for an answer

they have stumble on your half answered dead double posted threads and will get

verry frustrated.

http://forum.java.sun.com/thread.jspa?threadID=656005&tstart=0

http://forum.java.sun.com/thread.jspa?threadID=655653&messageID=3854018#3854018

Did you google for it yourselve?

http://www.google.nl/search?hl=nl&q=site%3Asun.com+%22sign+an+applet%22&btnG=Google+zoeken&meta=

posted my sollution so many times the top 2 hits have my post in it.

Signing applets:

http://forum.java.sun.com/thread.jsp?forum=63&thread=524815

second post and last post for the java class file using doprivileged

harmmeijera at 2007-7-13 7:49:32 > top of Java-index,Security,Signed Applets...