Either the DLL must be in a directory that is in the PATH environment variable, or you must add the directory that contains the DLL to the
Java system property java.library.path. For example:
java -Djava.library.path=C:\mydir\that\contains\the\dll -jar myprogram.jar