For Java SDK 1.5.0 experimental GraalVM support has been added. The steps below show you how to run the agent -Pagent
to collect metadata on
codepaths within the SDK that are using reflection. You can then use the metadataCopy
and merge the SDK metadata into the metadata for your application.
See www.graalvm.org/jdk21/docs/getting-started
gu install native-image
cd examples-graalvm-native
Let this run to completion
./gradlew run -Pagent
./gradlew metadataCopy --task run --dir src/main/resources/META-INF/native-image
./gradlew nativeRun
Then you can directly run the executable
build/native/nativeCompile/ffsdk-native