Hacker News new | past | comments | ask | show | jobs | submit login

With Java 9 jigsaw and jlink you can now build fairly light JavaFX apps. The entire jre no longer has to be bundled. Only the pieces you're using.



Looks like that's about 45 MB [1]. For comparison, Electron is about 80 MB. Qt starts at 50 MB depending on what you need, but a few years ago I got it down to 16 MB with UPX and a customized ICU. Gtk starts at ~20 MB and compresses to about half that with UPX. You could probably get those a bit smaller if your license permits static linking, but then you have to write C++.

[1] https://steveperkins.com/using-java-9-modularization-to-ship...


I recently started experimenting with JavaFX. I was pleasantly surprised how nice it is, and how easy it is to package application bundles.


Unfortunately JavaFX still does not support Wayland, just like most Java GUI things (except for SWT which seems to have some support https://bugs.eclipse.org/bugs/show_bug.cgi?id=516841)


Given the progress of Wayland's adoption, I don't see it as a major issue.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: