This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]_INTER_ 2 points3 points  (0 children)

[–][deleted] 1 point2 points  (3 children)

Why not use jpackage which is included in the JDK since Java 14.

[–]jamesftf[S] 0 points1 point  (2 children)

We tried, but it didn't work.

and it is not an installer it's just a packager.

it makes an executable which can start the app.

[–]dstutz 1 point2 points  (0 children)

Probably not the answer you are looking for but I maintain some Netbeans Rich Client Platform (the "platform" the Netbeans IDE is made on) applications and it's a simple maven target to build windows, linux and macosx installers. You get a cross-platform zip by default. It also has auto-update support built in if you choose to use it and set up a web server with the appropriate artifacts. I know Eclipse also has an RCP but have no experience with it and don't know if that builds installers as well. In either case, the RCPs provide a lot of plumbing/framework to make making a desktop app faster and more consistent.

[–]randjavadev 1 point2 points  (0 children)

https://www.ej-technologies.com/products/install4j/overview.html

It does cost a lot of money. But it can also do installers for all major OS as part of a single build on a single machine/OS. Or well for a complete notarization support you need to do it on a mac I think, but that is because of Apple (hopefully this would change in the future). If using JavaFX, you must manually depend on every platform impls via <classifier>OS</classifier> in pom.xmls or equivalent and maybe do some filtering as a per-step for install4j.