The easiest way to configure GraalVM Native Image

preview_player
Показать описание
For building precompiled executables out of your applications GraalVM native image uses static analysis which sometimes needs explicit configuration for the dynamic features:
- Reflection
- Proxies
- Resources
- JNI
- Serialization
- MethodHandles

The configuration is json files that aren't hard to create, but could be tedious to produce especially for the applications with the logic you don't fully understand or can explain.
To prepare the configuration then you can use the javaagent which will trace the execution of your code and produce the configuration for you.

Watch me show how to use that javaagent on a sample application.

Рекомендации по теме
Комментарии
Автор

Thanks for sharing this video.
Will be nice if you can also make a video for using GraalVM native images with LWJGL and jMonkeyEngine please.
There had been some failed attemps before:

Appreciate any help.
Regards

Ali-RS