• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using .java.policy files

 
Charlie Flynn
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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
 
Jeremy Hooie
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • 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).
 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic