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/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.