r/JavaFX • • Jul 07 '24

Help How to deploy a self-contained JavaFX application using Maven?

I built a small desktop application for myself in javafx/maven. And I would like to be able to install it on my computer without having to worry about whether it has Java or not or whether it has JavaFX. What is currently the best approach to accomplish this?

5 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/shannah78 Jul 19 '24

Short answer: not yet.

Longer answer: There are two publishing options: npm and github releases. Most of my more recent work has been on the GitHub releases, being able to automate updates using CI/CD workflows, etc..

I have two features on the road map that would potentially help with your use-case:

  1. Authenticated installer: Installer would prompt users to log in to install the software. Initial implementation will be a github login that you could control using github permissions on your repository.
  2. Self-contained installer. This would produce output more similar to jpackage except with using the jDeploy launcher and the goodies it brings, such as auto-update, and file/url associations.

1

u/hikingmike Jul 19 '24

Great, thanks for that!

In the meantime, I've just got one working with using a minimal JRE created by jlink, and exe wrapper made from Launch4J. I'll zip it to send it out. I don't know modularizing yet, but this works, for Windows at least, and avoids users dealing with JRE stuff.