I have a challenge compiling a 3rd party clojure code to native image, which inside (def)s (that are build-time initialized) references classes with dynamically linked native JNI methods (which need to be run-time initialized).
I wonder if there is a way to solve it without rewriting the original code.
Would linking the JNI libraries statically help? According to this https://www.blog.akhil.cc/static-jni it should be possible, but it looks a bit shaky. Has anyone ever tried to make it work?
which lib is that?
HumbleUI, some more details in https://github.com/HumbleUI/HumbleUI/issues/83
ah yeah