Dear All,

when building a minimum JavaFX app [1] for Windows platform using
Gluon's maven plugin [2] incorporating GraalVM native image, the final exe
size is approx. 60 MB. It is quite large. I've been searching for the help
on StackOverflow [3], but there is no response for last 6 months. I am
afraid this can be considered as a major JavaFX cons comparing to other
desktop app frameworks (Flutter, Tauri).

Do you see some room for reducing this size by some JavaFX engine tweaks in
a long term? There was some discussion JavaFX needs some Swing stuff because
of printing support. If this part is refactored, would this have some impact
on the app size?
Another option for Windows could be switching from embedded WebKit to MS
WebView2 [4]. Relying on web engine shipped with OS has definitely some
drawbacks, but the app size could be reduced signifficantly.

I like JavaFX, it suits my needs, but producing executables of reasonable
size would make me (+ JavaFX community) happier. And could persuade those
undecided.

Thanks,

Jan
_________
[1] https://github.com/drifted-in/hello-javafx
[2] https://github.com/gluonhq/gluonfx-maven-plugin
[3]
https://stackoverflow.com/questions/66250311/reducing-the-size-of-javafx-nat
ive-image-app
[4] https://docs.microsoft.com/en-us/microsoft-edge/webview2/

Reply via email to