title: Java flag -Djava.security.policy - RMI Server
body: <p>I had the same issue using the RMI Server as the question here 
  <a href="https://stackoverflow.com/questions/2329052/java-rmi-socket-permission-issues">Java RMI - Socket Permission issues</a></p>
  
  <p>I set the VM with the appropriate flag suggested, but for some reason I suspect that it does not read the policy file. So it keeps giving me the java.security.AccessControlException
  as mentioned in the link above. Also isn't weird that java does not complain when I give wrong arguments to -Djava.security.policy=... ?</p>
  
  <p>Does anybody know why this keeps happening?</p>