Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 932 Bytes

File metadata and controls

42 lines (30 loc) · 932 Bytes

GraalVM

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.

Install GraalVM

See www.graalvm.org/jdk21/docs/getting-started

Setup native image support

gu install native-image

Goto example

cd examples-graalvm-native

Build reflection metadata for the SDK and its dependencies

Let this run to completion

./gradlew run -Pagent

Copy the meta-data

./gradlew metadataCopy --task run --dir src/main/resources/META-INF/native-image

Run it

./gradlew nativeRun

Then you can directly run the executable

build/native/nativeCompile/ffsdk-native