Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cross-platform packaged app

10 views
Skip to first unread message

Louis B

unread,
Nov 7, 2022, 4:27:22 AM11/7/22
to

Hey there

I’m currently planning on developing a UI App based on JavaFX for Win,
Mac and Linux. The requirement would be that the app can be executed on these
platforms without the user having to install a JRE. So the app must either be
natively compiled or packaged with a JRE.

Is there anyone here who can share the best practice on how to do that?

- Louis

e.d.pro...@gmail.com

unread,
Nov 7, 2022, 7:10:07 AM11/7/22
to
Java never has to be installed, you can download it and extract it and point the run as to the javaw.exe.
I'm not sure about the licensing for distributing the JRE. Packaging it with a download for in house app users in a zip should be simple enough.
When you download Java, it asks you what OS, so you would need separate downloads for each OS.
If you want something they can just run without extracting a folder and linking the Java exe to a jar file, you can build it all in an exe file for Windows (https://launch4j.sourceforge.net/). I don't know about Mac or Linux.

Martin Gregorie

unread,
Nov 7, 2022, 11:57:43 AM11/7/22
to
OpenJava packages are included in all the commonly used Linux
distributions. They are entirely compatible with the equivalent Oracle
releases and include the standard documentation and toolsets.


--

Martin | martin at
Gregorie | gregorie dot org

Arne Vajhøj

unread,
Nov 7, 2022, 7:27:51 PM11/7/22
to
I have never tried any of it.

But you should probably investigate:
- JavaFX jlink with launcher
- Gluon substrate to create native image

Arne





0 new messages