Hacker News new | ask | show | jobs
by ptx 82 days ago
There is with jpackage. The packages it builds could include install scripts (or custom actions in the case of MSI) to run at install time.

The script wouldn't have to do the training run at install time, as I understand it, just the AOT compilation. See the section on "AOTMode=record" vs "AOTMode=create" in the JEP.

1 comments

That's basically what I said...
JPackage - Dev.java is a command-line tool bundled with the Java Development Kit (JDK) since JDK 14 (fully stable since JDK 16) used to package self-contained Java applications into native, platform-specific installable package.

Which would need a teensy tiny modification to include a performance profile.