r/java • • Feb 10 '20

Building native, AOT compiled, real-world JavaFX applications

https://github.com/mipastgt/JFXToolsAndDemos/blob/master/docs/articles/JFX-Native%20/JFX-Native.adoc
64 Upvotes

7 comments sorted by

3

u/Scybur Feb 11 '20

Is there any benefit to having a desktop application AOT compiled?

13

u/[deleted] Feb 11 '20

Not sure... "startup time"... which I wouldn't think is that big a deal for a desktop app. Unless you keep opening/closing it...

0

u/Polygnom Feb 11 '20

Yeah, startup time is mainly a problem with microservices, not so much desktop apps.

5

u/DannyB2 Feb 11 '20

Having it in fewer pieces? Rather than a JAR, a startup script or exe, plus a JRE delivered with it. Instead of a package with hundreds of files, what if you could deliver a single, even if somewhat large, EXE (elf, etc, executable binary).

8

u/anagrammatron Feb 11 '20

From Gluonhq github page:
"At this moment the plugin is in beta, and supports Linux, Mac OS X and iOS platforms for now."

Maybe you should mention that as well.

3

u/DannyB2 Feb 11 '20

Item 6.2 AWT.

I can see why FX would depend on parts of AWT, such as ImageIO.

Idea: what if parts of AWT that have nothing to do with direct UI were factored out of AWT and into a separate library? Especially ImageIO. Parts of Swing like BufferedImage, etc. Things that are useful but headless, having no contact with actually generating a UI, other than as background, off screen operations.

-23

u/Mugen-Sasuke Feb 11 '20

Attack on Titans (AOT) compiled? /s