• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet accessing files

 
Sapna Korecherla
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a question, infact a problem, that needs to be solved.
I have an applet that reads a text file.
First when I wrote then the applet and then it did not read the file. It gave the error Access denied (java.io.FilePermission: test.txt read)
Then I changed the policy file and executed it with appletviewer, the applet read the file, but when tried to access the same with IE browser, it did not read.
Why is it so? What should I do to make the IE also read the text file ?
Please let me know.
Thanks in Advance
Sapna
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi sapna,
i faced the same problem but thanks to NN i am able to figureout the problem...
the thing is- even if u change the Policy File browser has to adapt those changes which seems its not doing. in NN7.0 we have "reload policy configuration" option in the JavaConsole which we have to run to make browser aware of the latest policy configuration. i guess this option is there for NN6 as well but not sure about NN4.7* versions...
i tried this and it works for me on NN now. earlier it was not accepting policy file changes for NN also.
so, i believe the same thing applies to IE browser as well but we don't get option of "reload policy configuration" if we use MS JVM so we will have to figureout "how we can make MS JVM running in IE make aware of policy file changes"...
with appletviewer it works becuase its a local thing and doesn't go through browser which somehow doesnt get notified about the policy changes...
if u 've netscape please try this and let me know if this works for u as well.
regards
maulin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic