0

I have the following problem:

I want to run a photobooth application in Java (Windows) using the Canon EDSDK.

But when I open the connection to the camera, I get this error: java.lang.UnsatisfiedLinkError: Unable to load library 'EDSDK/Dll/EDSDK.dll'

Is there a way to manually set the path to my EDSDK-library?

I'm using the edsdk4j-library: https://github.com/kritzikratzi/edsdk4j/

Here's the code:

    static CanonCamera dslr;
    static boolean connected = false;

    public static void init() {
        dslr = new CanonCamera();    //This line throws the error
        dslr.openSession();
        connected=true;
    }

1 Answers1

0

Did you install the EDSDK as the project suggests?

Otherwise I suggest enabling the debug logs to see where the projects looks for the DLL:

// In your main, before the SDK setup
edsdk.utils.DLL_Setup.debug = true;

( See here )

Gui13
  • 12,993
  • 17
  • 57
  • 104