Hacker News new | ask | show | jobs
by samus 79 days ago
There is no install time in Java. If you want something to happen at install time you'd have to ship a shell script with the installer that does a brief training run when the application is first started.
1 comments

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.

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.