Typically, build.xml is the main configuration file for NetBeans' projects. So to make native packaging work, we need to make a few edits to some of these files. Ant uses XML files for its configuration. What is this build.xml file of which you speak? NetBeans uses Ant for all of its Java compiling and packaging tasks. So to do that, we are gonna need to make a couple of configuration changes to the build.xml file.Īside: Hey Mike. Hooray! You have a JavaFX app and you are ready to package it for Windows. This should ensure that you have a build.xml file and that everything is working correctly. In my source files you will see a references to that project.īefore proceeding, make sure you can build and run your application. Note: For my example I used a sample app I created called TextViewer. Select a Project Name and a directory location and you should be all set. To create it, start NetBeans then choose File -> New Project -> JavaFX -> JavaFX Application. If you are just testing, the default JavaFX application works just fine. Of course, before we can create an installer for an app, we need an actual application. This makes an installer and creates an exe.
To make the exe file, download and install Inno Setup 5.