[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: Reducing the size of JavaFX native image app
From:       Nir Lisker <nlisker () gmail ! com>
Date:       2021-08-26 14:40:22
Message-ID: CA+0ynh-a4Ms96CMgSmCu4dDui0i0ggfJ19k4Jt0EKz7=u--k5w () mail ! gmail ! com
[Download RAW message or body]

>
> the final exe size is approx. 60 MB
>

I assume that includes the JDK modules. JavaFX itself is not that large.
Can you identify which modules you are packing (maybe with jdeps) and what
are their sizes?

On Thu, Aug 26, 2021 at 4:32 PM Jan Tosovsky <j.tosovsky@email.cz> wrote:

> 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
> <https://stackoverflow.com/questions/66250311/reducing-the-size-of-javafx-native-image-app>
> [4] https://docs.microsoft.com/en-us/microsoft-edge/webview2/
>
>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic