Originally posted by Ulf Dittmer:
Applets have a number of security restrictions. Norm mentioned the one about not being able to access the local file system. Another one is the inability to access hosts other than the one where the applet originated from. So a URL to java.sun.com is not allowed. You'll need to digitally sign the applet. See HowCanAnAppletReadFilesOnTheLocalFileSystem for more details.
Hi Ulf,
I went thru the given link-
I modified my java.policy file in jre1.6.0_03\lib\security\java.policy
I added following lines to it -
Then I ran my applet (not the one posted above )which tries to access a folder from my local drive.
But I still get this error-
java.security.AccessControlException: access denied (java.io.FilePermission D:\JDEV10133\jdev\mywork\NewAppletCode\ViewController\public_html\applet\textVrml1 read) I do not have policytool and couldn't download from internet.
Please let me know if the above changes in policy file are sufficient or I need some changes in some other file too?