Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to store Policy file in Windows 98

 
Neeta Tripathi
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
 
maateen ashraf
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.
 
Arunagiri, Shanmugham
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic