it is highly recommended embedding the dokan1.dll in your application folder. Doing this will retain compatibility of your application with all MAJOR versions equal to the library you embed.
By bundling the .dll ourselves, we just need to check if the right driver is installed at C:\Windows\System32\drivers\dokan1.sys and can be sure all dependencies are met.
We might also need to set the jna.library.path system property.
As described in the Dokany wiki:
By bundling the
.dll
ourselves, we just need to check if the right driver is installed atC:\Windows\System32\drivers\dokan1.sys
and can be sure all dependencies are met.We might also need to set the
jna.library.path
system property.