• 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

Where to store Policy file in Windows 98

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I have recently cleared SCJP exam and it is my first post in this forum .I have created an applet and wanted to pick some images from an URL. Everything is OK . I have made a java.policy file for it also.But I think that I couldn't store it at proper place as when I run it in appletviewer It gives me an error "java.security.AccessControlException:Access Denied"
On command prompt window I write the command: appletviewer -J-Djava.security.policy=java.policy slides.html
All the related files are stored in MyDocuments.
How to resolve it? please help...
Thanx
------------------
Sun Certified Java Programmer
 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
place ur policy file in security folder in java runtime envirnment..
 
Neeta Tripathi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by maateen ashraf:
place ur policy file in security folder in java runtime envirnment..



Thanks for your help....but it is not working....giving same errors again.
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Please give the policy settings u have done. It may have to be corrected.
Arun
SCJP
 
Neeta Tripathi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Stephanie added UBB tags to make the code more readable.
In Policy file I have written down :
grant {
permission AllPermission;
};
and saved it in jre'Security folder as per said by Mateen.
Firstly, I saved it where my program is saved
See,what's wrong here? What's the required step I am missing?
Thanx
Neeta
[This message has been edited by Stephanie Grasson (edited March 20, 2001).]
[This message has been edited by Stephanie Grasson (edited March 20, 2001).]
[This message has been edited by Stephanie Grasson (edited March 20, 2001).]
 
keep an eye out for scorpions and black widows. But the tiny ads are safe.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic