title: Canon EDSDK Java set library path
body: <p>I have the following problem:</p>
  
  <p>I want to run a photobooth application in Java (Windows) using the Canon EDSDK.</p>
  
  <p>But when I open the connection to the camera, I get this error: 
  <strong>java.lang.UnsatisfiedLinkError: Unable to load library 'EDSDK/Dll/EDSDK.dll'</strong></p>
  
  <p>Is there a way to manually set the path to my EDSDK-library?</p>
  
  <p>I'm using the edsdk4j-library: <a href="https://github.com/kritzikratzi/edsdk4j/" rel="nofollow noreferrer">https://github.com/kritzikratzi/edsdk4j/</a></p>
  
  <p>Here's the code:</p>
  
  <pre><code>    static CanonCamera dslr;
      static boolean connected = false;
  
      public static void init() {
          dslr = new CanonCamera();    //This line throws the error
          dslr.openSession();
          connected=true;
      }
  </code></pre>