Thanks for the detailed article and for sharing your experience Lars. Where would be the best place to create a page to put all stuff related to installers and bundling JRE/JDK?
Cheers On Tue, 23 Nov 2021, 18:09 Lars Bruun-Hansen, <lbruunhan...@gmail.com> wrote: > Hi Zoran > > It has indeed been possible for many years to bundle a JRE with a > NetBeans Platform installer. > It is documented here: https://dzone.com/articles/including-jre-in-nbi > > The advantage is that you can simply distribute a single file to your > users which is an Installer executable (e.g. a .exe on Windows, a .sh > on Linux, etc). Inside the executable there will be a bundled JRE > which is silently unpacked and then used to launch the actual Java > code which forms your Installer logic. The same JRE can then also be > used for launching the application itself. > > There's an annoying "bug" which means that you MUST re-package your > JRE bundle (say from Azul) using Info-ZIP and not some other archiving > tool. [NETBEANS-6228]. > > However: All of the above assume that you use NBI (NetBeans Installer) > with all of its Ant magic, convoluted way of working and lack of > documentation (IMO). It does work, though. But I can for sure applaud > Neil's effort to take a different route. I've struggled a lot with NBI > and - even if I was eventually successful - I'm not sure I can > recommend the experience. :-) > > /Lars > > > On Tue, Nov 23, 2021 at 4:14 PM Neil C Smith <neilcsm...@apache.org> > wrote: > > > > On Tue, 23 Nov 2021 at 15:06, Zoran Sevarac <seva...@gmail.com> wrote: > > > Using jdkhome worked. Thanks! > > > Using it with installers would be even better! Let me take a look at > > > NBPackage and we'll continue the discussion . > > > > Great! This might be useful too - > > https://github.com/neilcsmith-net/nbpackage-test Built some test > > installer / appimages of NetBeans last month, and these are the > > configuration files (as well as the binaries under releases). > > > > Neil > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org > > For additional commands, e-mail: dev-h...@netbeans.apache.org > > > > For further information about the NetBeans mailing lists, visit: > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org > For additional commands, e-mail: dev-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >