Quarkus initializes as much classes as possible at build time. Initializing com.mongodb.internal.crypt.capi.CAPI, as well as com.sun.jna.Native/Structure at build time results in UnsatisfiedLinkError when mongodb-crypt calls native methods from libmongocrypt.
- links to