Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: cross-platform packaged app Date: Mon, 7 Nov 2022 16:57:29 -0000 (UTC) Organization: A noiseless patient Spider Lines: 35 Message-ID: References: <0001HW.291906EB000218483077A238F@nntp.aioe.org> <6d5f4caa-fc1b-444c-917a-79678fe2d852n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 7 Nov 2022 16:57:29 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="5deb7651095331c3214ebd09cd0adacc"; logging-data="3818791"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Xjeff9GEe7nlJL0J9HclX/Wij1OKP1xY=" User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git) Cancel-Lock: sha1:hIzUYm5jLIiWiKDsOscokHXmAfQ= Xref: csiph.com comp.lang.java.programmer:39839 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