Heyo. I'm trying to compile again with graal using a file watcher library. I'm getting this error when running the server:
JVM Exception: #error {
:cause Class java.nio.file.StandardWatchEventKinds$StdWatchEventKind[] is instantiated reflectively but was never registered. Register the class by using org.graalvm.nativeimage.hosted.RuntimeReflection
:via
I've tried adding this reflection file, but without much luck:
[
{
"name" : "java.nio.file.StandardWatchEventKinds",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredClasses" : true,
"allPublicClasses" : true
}
]
Anybody have any advice ?github repo if relevant: https://github.com/theiceshelf/firn/tree/feat/server
@tees you need to register the array, not the class element
Ok, thanks. I suppose I took the wording Register the class by using...
too literally.
It works! Thanks so much (again)!
\o/