title: Native libraries are working in normal Java application but not in Eclipse plugin
body: <p>For my application I need a third party framework. This framework consists of 2 Jar Files and 2 native libraries.</p>
  
  <p>For testing purpose I added the files to a folder that is in my java library path. Now if I start my normal application, all works as expected.</p>
  
  <p>But if I start my Eclipse plugin, I get the following exception:</p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: /usr/lib/java/libPQOSUtil.dylib:  no suitable image found.  Did find:  /usr/lib/java/libPQOSUtil.dylib: mach-o, but wrong architecture
      at java.lang.ClassLoader$NativeLibrary.load(Native Method)
      at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1750)
      at java.lang.Runtime.loadLibrary0(Runtime.java:823)
      at java.lang.System.loadLibrary(System.java:1045)
      at PQSDKMultiTouch.PQOSUtil.&lt;clinit&gt;(PQOSUtil.java:7)
      at PQSDKMultiTouch.PQMTClient.SendRequest(PQMTClient.java:61)
      ....
  </code></pre>
  
  <p>I didn't change anything. So what's the problem and how can I resolve it?</p>