MyDigitalLife

JavaFx application with Windows installer

This page describes how to create a JavaFx application as a maven project which creates a Windows installer.
The GPXEditor is used as an example.

Project/package goedegep.gpx.exe

The reason that this is a separate project is related to the build. All my eclipse projects use java modules, except these .exe projects. I haven’t found a good way to use maven to build an installer in a project based on modules.
The main method is in the GPXWrapper. This doesn’t do anything, except calling the GPXApplication (that why it’s called a wrapper). The reason for having this wrapper is a problem with JavaFx in an executable. If the main class is the subclass of javafx.stage.Stage, the executable doesn’t do anything.