I was just playing around with the launch process for JavaFX and encountered the known issue "JavaFX runtime components are missing, and are required to run this application" when the Main class extends Application.

Then, I wanted to look where this message is printed from and how the launch process is handled to see if there are possible improvements there.

Now if I see this correctly, the non-modular JavaFX Application launching is done from the JDK itself? The code is still included in the JDK in java.base at sun.launcher.LauncherHelper.FXHelper and not decoupled from the JDK. So this can't even be changed in the jfx codebase.

Is this intentional or a leftover, i.e. would it be possible to even change this or is that some legacy thing which can't be changed?

Reply via email to