title: cannot start jstatd due to permission error
body: <p>I try to run jstatd jvm monitoring tool on linux machine</p>
  
  <pre><code>jboss@hostAddr:/usr/java/jdk1.6.0_18/bin&gt; uname -a
  Linux hostAddr 2.6.16.60-0.34-smp #1 SMP Fri Jan 16 14:59:01 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux
  </code></pre>
  
  <p>with following command:</p>
  
  <pre><code>jstatd -J-Djava.security.policy=~/jstatd.all.policy
  </code></pre>
  
  <p>jstatd.all.policy contents</p>
  
  <pre><code>grant codebase "file:${java.home}/../lib/tools.jar" {
  
     permission java.security.AllPermission;
  
  };
  </code></pre>
  
  <p>Unfortunately I get following output:</p>
  
  <pre><code>Could not create remote object
  access denied (java.util.PropertyPermission java.rmi.server.ignoreSubClasses write)
  java.security.AccessControlException: access denied (java.util.PropertyPermission java.rmi.server.ignoreSubClasses write)
          at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
          at java.security.AccessController.checkPermission(AccessController.java:546)
          at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
          at java.lang.System.setProperty(System.java:725)
          at sun.tools.jstatd.Jstatd.main(Jstatd.java:122)
  </code></pre>
  
  <p>For some reason jstatd runs successfully on windows with the same command and policy file.</p>
  
  <p>Linux java version:</p>
  
  <pre><code>java version "1.6.0_18"
  Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
  Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)
  </code></pre>
  
  <p>Windows java version:</p>
  
  <pre><code>java version "1.6.0_26"
  Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
  Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
  </code></pre>