title: java.util.PropertyPermission user.home read (Access Denied)
body: <p>I have a signed applet in which i have used JFilechooser to browse file from local file system for uploading. It runs properly in windows and mac. But in linux it shows error <em>Access Denied (java.util.PropertyPermission user.home read)</em>. I searched in the internet and found one <a href="http://www.ccp4.ac.uk/jwc/image_applet/Policy_file_examps_ccp4.html" rel="nofollow">solution</a>. I did accordingly, however could not solve the problem.</p>
  
  <p>I created file .java.policy file inside my home folder.</p>
  
  <pre><code>grant codeBase "http://bioinfo.utu.fi/applet/*" {
    permission java.io.FilePermission "/home/raj/-", "read";
    permission java.io.FilePermission "/home/raj/-", "write, delete";
  };
  </code></pre>
  
  <p>I could not get JFileChooser dialogue in Linux when i click "Browse" button, but shows Exception: <em>Access Denied (java.util.PropertyPermission user.home read)</em>. How can i run it in Linux?
  I appreciate your help.</p>
  
  <p><strong>Recent Update:</strong></p>
  
  <p>I searched java.policy file from the terminal</p>
  
  <pre><code>[raj@localhost Desktop]$ locate java.policy
  /home/raj/.java.policy
  /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/security/java.policy
  </code></pre>
  
  <p>I added following lines in the file /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/security/java.policy</p>
  
  <pre><code>grant{
      ...
      ...
      permission java.util.PropertyPermission "user.home", "read";
          permission java.io.FilePermission "/home/raj", "read";
      permission java.io.FilePermission "${user.home}${/}*", "read,write";
  
      }
  </code></pre>
  
  <p>Noe i can see JFileChoose Dialogue. Now i got another problem. I could not see and files on home directory in the applet file chooser dialogue.</p>