graalvm

2023-12-20T16:52:04.517569Z

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?

borkdude 2023-12-20T17:53:27.757199Z

which lib is that?

2023-12-20T18:01:09.205499Z

HumbleUI, some more details in https://github.com/HumbleUI/HumbleUI/issues/83

borkdude 2023-12-20T18:02:16.257429Z

ah yeah