It is just a normal java agent and works with any jvm app. As in "java -agentlib:... -jar app.jar"
But you do need to start/run your app once to get the agent to do its stuff.
https://www.graalvm.org/latest/reference-manual/native-image...
(it is part of the graalvm so use that as your jvm to do this)