• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Creating Policy / applet

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm moving this to the Applets forum...
 
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 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic