title: unable to fetch process time using sigar
body: <pre><code>import java.io.IOException;
  import org.hyperic.sigar.*;
  
  public class SigarDemo {
  
  public static void main(String args[]) throws SigarException, IOException
  {
  
      final Sigar sigar = new Sigar();
      final long[] processes = sigar.getProcList();
      ProcTime pt=new ProcTime();
      for (final long processId : processes)  {
      ProcUtil.getDescription(sigar, processId);
      pt=sigar.getProcTime(processId);       
      System.out.println("---"+pt.getStartTime());
      }
  }
  </code></pre>
  
  <p>I am trying to fetch process time of each process using sigar. I am getting this errors:</p>
  
  <pre>
  Exception in thread "main" java.lang.ExceptionInInitializerError
  at taskmanager.SigarDemo.main(SigarDemo.java:22)
  Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "sigar.nativeLogging" "read")
  at java.security.AccessControlContext.checkPermission(AccessControlContext.java:457)
  at java.security.AccessController.checkPermission(AccessController.java:884)
  at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
  at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
  at java.lang.System.getProperty(System.java:714)
  at org.hyperic.sigar.Sigar.(Sigar.java:78)
  </pre>
  
  <p>I have tried policy file setting all permission. but still I am getting errors. I am using netbeans 8.0 . and I had already setting </p>
  
  <p><code>-Djava.security.manager -Djava.security.policy=src/dir1/dir2/important.policy</code></p>