• 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

using .java.policy files

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am currently trying to set permissions for applets hosted on my server to read from a log file on my machine. Both the applet and the text file share the same directory. The applet can read the file when I call it in the appletviewer but not in the html file. I have been trying to understand the lengthy documentation on policy tool from the Sun site. However, I still cannot get my applets to recognise that I have created a policy file allowing them read access to the text file. I saved the policy file in C:\jdk1.3.1\jre\lib\java.policy and another version in C:\
Can anyone advise me as to where I am going wrong with this and how to correct the problem?
Many Thanks,
Charlie
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your .java.policy file needs to be located in your home directory (usually C:\WINNT\Profiles\%username% on NT and C:\Windows on 95/98).
 
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
The policy file is usualy located at
C:\Program Files\JavaSoft\JRE
Here look for what all JRE's u have.
In my case i have 2 JRE's
JRE1.2 and JRE1.3.1.
So go for the higher JRE ie JRE1.3.1 ie located at
C:\Program Files\JavaSoft\JRE\1.3.1\lib\security. U will find the policy file there. Change it to grant permissions
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic