Re:Compiling Java into Native Binaries with Graal and Mill
by sgammon on Tuesday February 04, 2025 @05:59AM
(#42930846)
GraalVM also has an agent for Gradle and Maven which can do this.
[ Parent
| on HN ]
Re:Compiling Java into Native Binaries with Graal and Mill
by doikor on Tuesday February 04, 2025 @07:02AM
(#42931283)
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)