title: Running Executable Jar throws no opencv_java310 in java.library.path error but runs fine in IDE
body: <p>I have made JavaFX Project with using Opencv 3.1 Java library in it.</p>
  
  <p>The thing is that my project runs completely perfect from the IDE but when I try to run the <code>.jar</code> file from the <code>dist</code> folder it throws the unsatisfied link error.</p>
  
  <p>I searched about this problem already and found many answers but none solved mine.I think may be those solutions are for older versions. </p>
  
  <p>My <strong>Main Method</strong> is as follows :- </p>
  
  <pre><code> public static void main(String[] args) {
          System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
          launch(args);
      } 
  </code></pre>
  
  <p>I have also set the <strong>library path</strong> correctly : </p>
  
  <p><a href="https://i.stack.imgur.com/DmSfi.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DmSfi.jpg" alt="enter image description here"></a></p>
  
  <p>and also have the <strong>.dll file</strong> in the specified location </p>
  
  <p><a href="https://i.stack.imgur.com/mCEfF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mCEfF.jpg" alt="enter image description here"></a></p>
  
  <p>The App runs completely as expected if I run from IDE ! </p>
  
  <p>PS: I also tried to put the project in Eclipse and try creating jar but same thing happens, it runs in IDE but not when I run the jar </p>
  
  <p><strong>Error details :</strong></p>
  
  <pre><code>java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
          at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
  Caused by: java.lang.UnsatisfiedLinkError: no opencv_java310 in java.library.path
          at java.lang.ClassLoader.loadLibrary(Unknown Source)
          at java.lang.Runtime.loadLibrary0(Unknown Source)
          at java.lang.System.loadLibrary(Unknown Source)
          at com.Rein.rteapp.MainApp.main(MainApp.java:129)
  </code></pre>