graalvm native support?
According to the documentation (https://www.graalvm.org/latest/reference-manual/native-image/native-code-interoperability/foreign-interface/), you need to configure ForeignRegistrationFeature, but I don't know how to configure it
GraalVM has many restrictions affecting the Foreign Function and Memory (FFM) API. It neither supports upcalls nor calls to SymbolLookup.libraryLookup(). Unfortunately, they are required for this library. So the GraalVM support for FFM is currently insufficient to run this library on any platform.
@manuelbl The upcoming GraalVM is looking good for the FFM API, is it possible to look into supporting it now? I am using https://github.com/graalvm/graalvm-ce-dev-builds/releases/tag/25.0.0-dev-20250517_0807 to test it.
@Syer10 GraalVM obviously makes progress. I will try to make it work with JavaDoesUSB when I find time.
Release 1.2.1 introduces minor changes so the library works with GraalVM 25 and higher.
See the enumerate_native for instructions. The example has the reachability metadata for Windows, Linux and macOS required by GraalVM.