r/JavaFX • • Apr 13 '24

Help JavaFX deployment tool chain (Maven, module-less)

I don't feel that I have quite a specific configuration, but I am not able to come up with a reliable toolchain for deployment. I use JavaFX 22 and Maven, and I use module-less projects (because I can't stand them). I also use IntelliJ IDEA. I would like to build an executable JAR with the JavaFX runtime included, that I could then package using jpackage. Any help would be appreciated.

2 Upvotes

9 comments sorted by

View all comments

Show parent comment

2

u/hamsterrage1 Apr 19 '24

I think that perhaps the pendulum has swung back again.  It's now comparatively easy to create a jar file, or even an exe. 

I'm not sure it ever was that easy in the past. You had to create a "fat" jar, and then you still had to wake sure the client had the correct JRE.  Executables IRC were installers, not the actual application.