graalvm

Mathias Picker 2023-01-16T18:25:17.463549Z

I'm trying the first time to use jena (java) in a clojure graal project. My setup works fine for clojure only, but as soon as I use jena, I get a ClassNotFoundException. Minmal project https://github.com/virtual-earth-de/jena-graal Any ideas how what I'm doing wrong or tips where to look or what I could be doing better?

borkdude 2023-01-16T18:49:30.100579Z

404

Mathias Picker 2023-01-16T19:02:14.397759Z

Guess I'm really too tired now … it's public now

borkdude 2023-01-16T19:04:05.075079Z

I think it will help if you add that class to the reflection config. Perhaps the jena library loads that class dynamically

Mathias Picker 2023-01-16T19:04:43.242029Z

I'll try. It's my first time using graal for more than playing around 🙂

Mathias Picker 2023-01-16T19:04:51.354239Z

Thanks!

borkdude 2023-01-16T19:06:43.813299Z

What could also help is add (set! *warn-on-reflection* true) in your clojure code to avoid any reflection

borkdude 2023-01-16T19:07:11.205729Z

if you get warnings while loading your namespace, fix them

Mathias Picker 2023-01-16T19:16:47.182589Z

That solved this error. Now I get a - different - error from xerces, but that has to wait till tomorrow. Thanks a lot!

👍 1