Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #39837 > unrolled thread

cross-platform packaged app

Started byLouis B <louis77@mac.com>
First post2022-11-07 10:27 +0100
Last post2022-11-07 19:27 -0500
Articles 4 — 4 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  cross-platform packaged app Louis B <louis77@mac.com> - 2022-11-07 10:27 +0100
    Re: cross-platform packaged app "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2022-11-07 04:09 -0800
      Re: cross-platform packaged app Martin Gregorie <martin@mydomain.invalid> - 2022-11-07 16:57 +0000
    Re: cross-platform packaged app Arne Vajhøj <arne@vajhoej.dk> - 2022-11-07 19:27 -0500

#39837 — cross-platform packaged app

FromLouis B <louis77@mac.com>
Date2022-11-07 10:27 +0100
Subjectcross-platform packaged app
Message-ID<0001HW.291906EB000218483077A238F@nntp.aioe.org>
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

[toc] | [next] | [standalone]


#39838

From"e.d.pro...@gmail.com" <e.d.programmer@gmail.com>
Date2022-11-07 04:09 -0800
Message-ID<6d5f4caa-fc1b-444c-917a-79678fe2d852n@googlegroups.com>
In reply to#39837
On Monday, November 7, 2022 at 4:27:22 AM UTC-5, Louis B wrote:
> 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

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.

[toc] | [prev] | [next] | [standalone]


#39839

FromMartin Gregorie <martin@mydomain.invalid>
Date2022-11-07 16:57 +0000
Message-ID<tkbddp$3kh97$1@dont-email.me>
In reply to#39838
On Mon, 7 Nov 2022 04:09:58 -0800 (PST), e.d.pro...@gmail.com wrote:

> On Monday, November 7, 2022 at 4:27:22 AM UTC-5, Louis B wrote:
>> 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
> 
> 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.
>
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

[toc] | [prev] | [next] | [standalone]


#39840

FromArne Vajhøj <arne@vajhoej.dk>
Date2022-11-07 19:27 -0500
Message-ID<tkc7po$1d59$1@gioia.aioe.org>
In reply to#39837
On 11/7/2022 4:27 AM, Louis B wrote:
> 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?

I have never tried any of it.

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

Arne




[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web