• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Applet accessing files

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Tongue wrestling. It's not what you think. And here, take this tiny ad. You'll need it.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic