title: SIGAR error: Operation not permitted
body: <p>I need a Java library that can tell me the current load of a server, so after searching I found that <a href="https://support.hyperic.com/display/SIGAR/Home#Home-download" rel="nofollow">SIGAR</a> is currently the most well known and well accepted amongst the community. </p>
  
  <p>I am using Linux Mint 64-bit as operative system (it is a slight modification of Ubuntu) and since it is my first time using such a library I created a new project from zero using Eclipse and decided to install SIGAR on it by doing:</p>
  
  <ol>
  <li>Download and extract the ZIP file </li>
  <li>Create a folder called "libs" in my new Java Project</li>
  <li>Copy the Sigar.jar and libsigar-amd64-linux.so files into the "libs" folder</li>
  <li>Right Click Project -> Properties -> Java Build Path -> Libraries -> Add External JARs -> Add Sigar.jar</li>
  <li>Cross fingers and run project</li>
  </ol>
  
  <p>However, when I run the project I get the following error:</p>
  
  <pre><code>/media/data/Users/pedro/SIGAR/libs/libsigar-amd64-linux.so: /media/data/Users/pedro/SIGAR/libs/libsigar-amd64-linux.so: failed to map segment from shared object: Operation not permitted
  org.hyperic.sigar.SigarException: /media/data/Users/pedro/SIGAR/libs/libsigar-amd64-linux.so: /media/data/Users/pedro/SIGAR/libs/libsigar-amd64-linux.so: failed to map segment from shared object: Operation not permitted
      at org.hyperic.sigar.Sigar.loadLibrary(Sigar.java:172)
      at org.hyperic.sigar.Sigar.&lt;clinit&gt;(Sigar.java:100)
      at examples.Shell.&lt;init&gt;(Shell.java:50)
      at examples.SigarCommandBase.&lt;init&gt;(SigarCommandBase.java:75)
      at examples.CpuInfo.&lt;init&gt;(CpuInfo.java:36)
      at examples.CpuInfo.main(CpuInfo.java:97)
  Exception in thread "main" java.lang.UnsatisfiedLinkError: org.hyperic.sigar.Sigar.getCpuInfoList()[Lorg/hyperic/sigar/CpuInfo;
      at org.hyperic.sigar.Sigar.getCpuInfoList(Native Method)
      at examples.CpuInfo.output(CpuInfo.java:60)
      at examples.SigarCommandBase.processCommand(SigarCommandBase.java:186)
      at examples.CpuInfo.main(CpuInfo.java:97)
  </code></pre>
  
  <p>I checked the Internet and the <code>Operation not permitted</code> error usually occurs when I do not have the write or read permissions, but such is not the case.</p>
  
  <p>Consequently I have some questions:</p>
  
  <ol>
  <li>Have I messed up the installation? </li>
  <li>If yes, how should I do it and can someone point me to a beginners tutorial?</li>
  <li>If not, how can I fix the error? I already tried running Eclipse as root but it didn't work.</li>
  </ol>
  
  <p>Thank you for your time, Pedro.</p>