title: Failed to load sigar-amd64-winnt: java.lang.NullPointerException
body: <p>I'm new to sigar and native library programming in java, so maybe it is just a simple problem, but I can't find a result on my own.
  I'm using eclipse indigo on a win 7 (64bit) OS. I've taken the following steps:</p>
  <p>Add sigar.jar an log4l.jar to the jre6/lib, add the sigar-amd64-winnt.dll (also the files for x86) file to ./Program Files/Java/jre6/lib.
  Then I only want to create a new sigar() but get the following exception:</p>
  <pre><code>Failed to load sigar-amd64-winnt: java.lang.NullPointerException
  org.hyperic.sigar.SigarException: Failed to load sigar-amd64-winnt: java.lang.NullPointerException
      at org.hyperic.sigar.Sigar.loadLibrary(Sigar.java:170)
      at org.hyperic.sigar.Sigar.&lt;clinit&gt;(Sigar.java:100)
      at MemExample.&lt;clinit&gt;(MemExample.java:8)
  Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: org.hyperic.sigar.Mem.gather(Lorg/hyperic/sigar/Sigar;)V
      at org.hyperic.sigar.Mem.gather(Native Method)
      at org.hyperic.sigar.Mem.fetch(Mem.java:30)
      at org.hyperic.sigar.Sigar.getMem(Sigar.java:304)
      at MemExample.getInformationsAboutMemor
  </code></pre>
  <p>I've already tried to manipulate the VM-Arguments (in <code>Run Config -DJava.library.path=&quot;path/of/lib&quot;</code>), to set the native library in the java build path to the path of sigar/lib and to set the Systempath in the program on my own with <code>System.setProperty(&quot;path&quot;, &quot;-&quot;)</code>. All of which are unsuccessful until now.
  And step by step I yield to despair.</p>
  <p>**Edit:**Is it possible that sigar only works with AMD?
  Some friend tried the same code with an AMD processor and win 7 (32b) and it works.
  I already look for an answer in the hyperic sigar developer forum, but I can't find any useful tips or answers.</p>