That error indicate thats you are not compiling the native version of Datalevin, you are compiling the Java version that use JNR
Native Datalevin does not use JNI at all, it uses the GraalVM SDK C API
The decision on which version to use is made in Datalevin using a multimethod, which check whether or not it is running inside a GraalVM image. Even at the image build time, the code should be in GraalVM image so the native binding should be chosen, but somehow, yours is running in regular Java mode
Maybe point me to your repo so I can take a look at how you are compiling native image?
ok, i found your datalevin branch
you are depending on datalevin 0.3.17, which is the release before the work on native compilation, of course it won’t work
I am going to release v0.4.0 today, as I just finished the native command line shell for datalevin
v0.4.0 should work
also, you are right, i should bundle the dtlv.a in the library
i am new to this business of releasing native code, so allow me sometime to get up to speed
Created PR https://github.com/clojure-lsp/clojure-lsp/pull/347
It compiles to native just fine.