-
Notifications
You must be signed in to change notification settings - Fork 173
FAQ
Yang, BongYeol (xeraph) edited this page Dec 19, 2021
·
25 revisions
- Download GraalVM Community Edition 21.0.0.2
- Latest version is 21.3.0, but I didn't tested it yet.
- Install native-image
gu install native-image
- Open x64 Native Tools Command Prompt for VS 2019
- Build PE binary using GraalVM Native Image
native-image -jar log4j2-scanner-2.3.2.jar log4j2-scan-2.3.2 -H:-CheckToolchain -H:ReflectionConfigurationFiles=scanner.json
- Added ReflectionConfigurationFiles option to allow reparse point related reflection.
- Set environment variables
-
export PATH=/path/to/graalvm-ce/graalvm-ce-java11-21.0.0.2/bin:$PATH export JAVA_HOME=/path/to/graalvm-ce/graalvm-ce-java11-21.0.0.2/
-
- Build elf binary using GraalVM Native Image
native-image -H:+StaticExecutableWithDynamicLibC -jar log4j2-scanner-2.3.2.jar log4j2-scan -H:-CheckToolchain -H:+AllowIncompleteClasspath
- Added AllowIncompleteClasspath option to ignore windows specific reflection.
- Build Mach-O binary using GraalVM Native Image
native-image -jar log4j2-scanner-2.3.2.jar log4j2-scan -H:-CheckToolchain -H:+AllowIncompleteClasspath
- Added AllowIncompleteClasspath option to ignore windows specific reflection.