Make .exe package for java or java fx project in netbeans
In this article we try to help you to make a EXE file from you JAVA/JAVAFX project in netbeans.
This article is rebuilding of a article from the netbeans wiki.
To install Inno Setup:
1- Download ispack-5.5.3.exe from the Inno Setup Downloads page.
2- Double-click the file to launch the installer.
3- Accept the Inno Setup license agreement and click Next.
4- Follow the instructions in the install wizard for installing Inno Setup.
1- On Windows , select Start > Computer > System Properties > Advanced system settings.
2- Select the Advanced tab and click the Environment Variables button.
3- In the System Variables pane, double-click the Path variable.
4- In the Edit System Variable dialog box, add a semicolon followed by a new path to the Variable value field (for example, C:\Program Files (x86)\Inno Setup 5).
5- Click OK to close all the open dialog boxes.
Enabling Native Packaging in the IDE
The native packaging actions are disabled in the IDE by default.
Right-click the AnagramGame project in the Projects window, to check the actions available for the created Java SE project in the IDE: there are no package related actions in the project's context menu.
To enable native packaging actions for the project:
1- Right-click the project node in the Projects window and select Properties from the context menu.
2- In the Project Properties dialog box, choose the Deployment category and select the Enable Native Packaging Actions in Project Menu option.
1- Right-click the project node in the Projects window and select Properties from the context menu.
2- In the Project Properties dialog box, choose the Deployment category and select the Enable Native Packaging Actions in Project Menu option.
3- click ok.
A Package as command is added to the project's context menu.
A Package as command is added to the project's context menu.
Now, to make your exe of a project, click on Clean and build then Package as then choose "EXE installer ". and wait for netbeans to make the EXE file, after that you will find the file in /dist/bundles/ of your project.