• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

i have problem with Accessing files

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i made a swing applet and it works fine on appletviewer but when i use IE 6 i have error
"java.security.AccessControlException: access denied (java.io.FilePermission c1.gif read)
"
where c1.gif is a gif file of a ImageIcon
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i really wonder why "Rob" didn't yet jump in if none else did so far into this?? may b Rob is busy...anyways...
do u try to access local gif? meaning something like c:\yourfolder\images\image.gif? (on Windows) OR /usr/home/yourlogin/images/image.gif (On Unix)??
if so then i would suggest that u can try using policy file settings to allow read access to the image file you have.
Following link might be helpful about PolicyTool,
PolicyTool Help
This policy file (java.policy OR .java.policy as you would read in the above mentioned link) will be there in your local machine as the applet is being executed on your machine (though within the browser JVM)...
i don't know if setting policyfile would work with IE but if you are using NN6/7 then you can have this policy file settings then go to the browser's Java Console use "Reload policy settings" option (for which "r" is the command in JavaConsole) and see if the applet works for you??
hope i could be of any help...
regards
maulin
 
We don't have time to be charming! Quick, read this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic