title: How to fix JavaFX-Blur UnsatisfiedLinkError
body: <p>There is this library called JavaFX-Blur, which can be found at <a href="https://github.com/kieferlam/JavaFX-Blur" rel="nofollow noreferrer">https://github.com/kieferlam/JavaFX-Blur</a>.<br />
  When trying to implement it in a project, this error occurred:<br /><br /></p>
  <pre><code>Exception in Application start method
  java.lang.reflect.InvocationTargetException
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:464)
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:363)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1071)
  Caused by: java.lang.RuntimeException: Exception in Application start method
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
      at java.base/java.lang.Thread.run(Thread.java:831)
  Caused by: java.lang.UnsatisfiedLinkError: 'void sample.NativeBlur._extApplyBlur(java.lang.String, int)'
      at sample.NativeBlur._extApplyBlur(Native Method)
      at sample.Blur._extApplyBlur(Blur.java:30)
      at sample.Blur.applyBlur(Blur.java:44)
      at sample.Main.start(Main.java:29)
      at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
      at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:474)
      at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:447)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
      at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:446)
      at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
      at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
  ... 1 more
  Exception running application sample.Main
  
  Process finished with exit code 1
  </code></pre>
  <br/>
  What I have done so far to set it up:<br/>
     - downloaded the project as a zip file and unzipped it.<br/>
     - added the two included .java files to the main package of my application.<br/>
     - in IntelliJ I added the javafxblur.dll by adding it as jar/directory on the modules tab of the project structure of the Project Structure<br/>
     -  copied and pasted the demo code from the article on Github into my project.<br/>
  <br/>
  <p>I do not think the error is that the library file can not be found, because I get a different error, when I delete it.</p>