Packaging with an installer using jpackage
With our custom JRE created, we are now ready to create a custom installable package. You can create these for Windows, Linux, or Mac. You must use the OS that is the target of your package. In addition, there are additional steps for each OS.
Windows requires you to install the WiX toolset. You can find this at https://wixtoolset.org/. Download the latest version and install it. When you run jpackage
, it will produce an EXE file. You can distribute this file, and when run, it will install all that is necessary to run the program in the C:\Program Files
directory. An executable EXE file will be in the folder, and this is how you will run your program.
Linux users, depending on the version they are using, will need the rpm-build
or fakeroot
package. When you run jpackage
, it will produce a DEB file for Debian Linux or an RPM file for other distros. You can distribute this file, and when run, it will install all that is necessary to run...