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 <[email protected]> wrote:
>
> On Tue, 23 Nov 2021 at 15:06, Zoran Sevarac <[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to