r/JavaFX • • 15d ago

I made this! JavaFX Packaging: A Developer's Guide (Demo / Guide Repo for teaching developers how to Package JavaFX Applications via Maven)

A few months ago I came here and asked how best to package JavaFX applications. I was met with people pointing me at third party tools (that abstract away the details and theory), people's own personal setups, but with little context of how / why they were setup like that and other "not quite what I was looking for" guidance.

God knows the official documentation doesn't make it easily clear. As such, it seemed there was a legitimate gap on what, to me personally, seems like a pretty fundamental step of using JavaFX.

So I decided to say "sod it" and make my own guide.

Here is a link to the repo of the project

It is quite simply a default "HelloApplication" project, but with a pom.xml setup to package the application into an OS-specific distributable that, should be JDK/JRE independent (i.e. self-contained).

Along with this, there are several markdown documents explaining the workflow of the packaging solution, along with details on each of the steps of the workflow (i.e. each plugin, the properties in the pom.xml ,etc).

The only limitation now is, I am but one developer on one Operating System (CachyOS) and would love other contributors to provide insight into the per-distro / per OS requirements (such as specific build tools like the WiX toolset), as they are quite sparse as of the moment, with that sparse nature being identified within the documentation itself.

Either way, I hope this helps anyone who, like me a few a months ago, struggled to find an explanation of how to set up packaging a JavaFX app, and was shocked to find there was next to nothing out there. 😄

43 Upvotes

19 comments sorted by

View all comments

2

u/Drawhoe 15d ago

Have a look here https://github.com/javapackager/JavaPackager I'm working on a game targeting Windows, Mac and Linux and I use that to package for Linux Mint.

2

u/Fuzzy-System8568 15d ago

Respectfully, please note I covered the idea of third party solutions not actually helping a new developers understand the concepts behind packaging a JavaFX application. I did so in the first paragraph of the OP.

This repo is to share the knowledge to those learning the framework. It is not simply to provide a third party solution.

0

u/Drawhoe 15d ago

Yeah but you could test and see if the Linux packager there works for your OS.

0

u/Fuzzy-System8568 15d ago

Why?

1

u/Drawhoe 14d ago

So don't then.