title: Unresolved java.lang.UnsatisfiedLinkError for FaceRecognizer class
body: <p>Good morning!</p>
  
  <p>I'm working on a project of face recognition using java but I got this error on FaceRecognizer class:</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: com.compa.opencv.nativec.FisherFaceRecognizerID.createFisherFaceRecognizer_1()J
      at com.compa.opencv.nativec.FisherFaceRecognizerID.createFisherFaceRecognizer_1(Native Method)
      at com.compa.opencv.nativec.FisherFaceRecognizerID.&lt;init&gt;(FisherFaceRecognizerID.java:15)
      at com.compa.opencv.PlayMain.createRecognizer(PlayMain.java:128)
      at com.compa.opencv.PlayMain.cameraRecognize(PlayMain.java:88)
      at com.compa.opencv.PlayMain.main(PlayMain.java:33)
  </code></pre>
  
  <p>I have tried the solutions in these below links but it didn't work :s</p>
  
  <p><a href="https://stackoverflow.com/questions/19344914/getting-java-lang-unsatisfiedlinkerror-no-lwjgl-in-java-library-path">Getting &#39;java.lang.UnsatisfiedLinkError&#39;: no lwjgl in java.library.path</a></p>
  
  <p><a href="https://stackoverflow.com/questions/41780905/exception-in-thread-main-java-lang-unsatisfiedlinkerror-no-openalprjni-in-jav">Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: no openalprjni in java.library.path</a></p>
  
  <p><a href="https://stackoverflow.com/questions/11825528/exception-in-thread-main-java-lang-unsatisfiedlinkerror">Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError&quot;</a></p>
  
  <p>Here is the part of the code which contains the error:</p>
  
  <pre><code>package com.compa.opencv.nativec;
  
  import org.opencv.contrib.FaceRecognizer;
  
  public class FisherFaceRecognizerID extends FaceRecognizer{
  
      private static native long createFisherFaceRecognizer_1();
  
      private static native long createFisherFaceRecognizer_1(int num_components);
  
      private static native long createFisherFaceRecognizer_2(int num_components,
              double threshold);
  
      public FisherFaceRecognizerID() {
          super(createFisherFaceRecognizer_1());
      }
  
      public FisherFaceRecognizerID(int num_components) {
          super(createFisherFaceRecognizer_1(num_components));
      }
  
      public FisherFaceRecognizerID(int num_components, double threshold) {
          super(createFisherFaceRecognizer_2(num_components, threshold));
      }
  
  }
  </code></pre>
  
  <p>Full code here: <a href="https://www.dropbox.com/s/pa415f6lz3zbco7/DemoFaceRecognize-master%20%282%29.zip?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/pa415f6lz3zbco7/DemoFaceRecognize-master%20%282%29.zip?dl=0</a></p>
  
  <p>I would be grateful with any kind of help.</p>