tree: e8119614707f93cecae741c806d696fdce657a07 [path history] [tgz]
  2. reflection_config.json

Generating reflection json file

  1. You need to package your java program in a JAR files.

  2. Check the native-image-configure tool by command:

native-image-configure --help
  1. Execute the command below (we assume that your JAR file named demo.jar):
java -agentlib:native-image-agent=trace-output=./trace-file.json -jar demo.jar
  1. Generate the reflection config json file.
native-image-configure process-trace --output-dir=./graal/ ./trace-file.json
  1. Then, you will find reflection_config.json in the output directory: ./graal/.

  2. More detail:,