- 
                Notifications
    You must be signed in to change notification settings 
- Fork 171
FAQ
        Yang, BongYeol (xeraph) edited this page Dec 20, 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.
 
- Install glibc-static
- yum install glibc-static
 
- 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 --static -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.