I'm using JNA to access native libraries packaged as a jar file as per https://java-native-access.github.io/jna/4.2.1/com/sun/jna/NativeLibrary.htm.
But the native libraries cannot be found if I put the jar into module dependencies. The error is "java.lang.UnsatisfiedLinkError: Unable to load library 'citvalsrv': Native library (win32-x86-64/citvalsrv.dll) not found in resource path..."
However if I put the same jar into the 'lib' directory in the project directory, JNA is able to find it. It looks like for some reason this particular jar is not added to the system runtime classpath.