graalvm 2024-09-12

Folks, does someone was able to compile a Clojure code for native-image without using a Java "companion file"? Basically, I wanted to write all my code in Clojure only. My attempt was trying to use gen-class with the right signatures like org.graalvm.nativeimage.c.CCharPointer, but when I run lein uberjar it crashes with

Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:445).
org.graalvm.nativeimage.c.CCharPointer

I assume you're trying to compile clojure as a library rather than an executable so you can expose some clojure functions?

Yes, I'm trying to compile as a shared library