• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating Policy / applet

 
Pispa Lupa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to add pictures to an applet.
To do this, I'm trying to create a policy.
The path for the default policy file of a
user in Windows NT is:
Winnt\Profiles\<Username>\.java.policy
When I go to the dos prompt and type
Policytool, I get an error stating:
"Could not find policy file:c:\Documents and settings\<Username>\.java.policy
The computer is not letting me create such
a file manually. Any help?
Lupa
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to the Applets forum...
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pispa
Well, even if you get an error you mentioned when you run policytool do you get the GUI for the policytool? If yes then you can create policy in the UI and then do "save" or "save as" where you can give name .java.policy file at the location you want.
Also, what do you exactly mean when you say "it doesn't allow me to create such a file manually"?? If you know the format of the policy file and if you are trying to create such a file in UserHome directory it shouldn't raise any problems.
Regards
Maulin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic