While trying to run with "not all classes initialized at build time" which is what GraalVM recommends nowadays, I think:
$GRAALVM_HOME/bin/native-image --no-server --no-fallback --initialize-at-build-time=clojure --initialize-at-build-time=clojure.core.server__init -H:+ReportExceptionStackTraces -cp classes:$(clojure -Spath) mymain
Caused by: java.lang.IllegalStateException: Can't change/establish root binding of: *warn-on-reflection* with set
I have seen your workaround for this problem. Wondering if it could be included in Clojure itself
Rather not, it's quite a hack for a niche problem
Do you use warn-on-reflection somewhere?
This is from clojure.core.server
I wonder if there is some sort of hack possible, like first force some thread-bindings for those vars