oracle / graal

GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀
https://www.graalvm.org
Other
20.39k stars 1.64k forks source link

How can I use GraalVm agentlib in graalvm version 20.3.0 #3057

Closed ahTy closed 3 years ago

ahTy commented 3 years ago

Describe GraalVM and your environment :

How can I use GraalVm's reflection configuration assistant tool agentlib to assist in generating relevant configuration files in my spring cloud project (springcloud version 2020.0.0-SNAPSHOT, springboot version 2.4.0, graalvm version 20.3.0)

When i try to use ‘java -agentlib:native-image-agent=config-output-dir=./native-image/ -jar myproject.jar’ it break down and return me core error

I need to import my own configuration file in my spring cloud project and use agentlib to export the corresponding reflection configuration

jramirez-isc commented 3 years ago

Hi @ahTy Can you share the error log?

oubidar-Abderrahim commented 3 years ago

The command is java -agentlib:native-image-agent=config-output-dir=native-image -jar myproject.jar If you're still facing this issue, please try with the latest version 21.0.0 and if the issue still persist, share the complete error log with us.

oubidar-Abderrahim commented 3 years ago

I am closing this issue. If you still need assistance please re-open.