r/java • • Sep 10 '26

New candidate JEP: 544: Ahead-of-Time Code Compilation

https://mail.openjdk.org/archives/list/jdk-dev@openjdk.org/message/J2VGSSFWJ7ZLHAYLCXVRUOXV4XMROQHL/
111 Upvotes

35 comments sorted by

View all comments

Show parent comment

0

u/FirstAd9893 Sep 11 '26

Without even a naïve training run, you'd still need to inform the compiler what the main class is. Otherwise, it wouldn't know what to compile ahead of time. A simple training run which just loads the main class isn't that difficult, in fact, it's quite trivial.