I managed to package a java application from Netbeans to an EXE following this article: https://netbeans.org/kb/docs/java/native_pkg.html#tool
I could not find a way to set the application Icon. Any tips would be greatly appreciated. Thanks!
I managed to package a java application from Netbeans to an EXE following this article: https://netbeans.org/kb/docs/java/native_pkg.html#tool
I could not find a way to set the application Icon. Any tips would be greatly appreciated. Thanks!
RMB(click Right Mouse Button) on Project> click on Properties> Build > Deployment.
Tick (check) "Enable Native Package" button.
Click on the "Icons and Splash Image" Edit button. From there, you can browse to locate Splash Image, and Native Package Icon you want.
Click "OK" > "OK". You are ready to go!
Go to your Project Properties -> Build -> Deployment.
There will be an option to enable native packaging and set native icon and splash screen.
Click on that and select the icon file you want to set as your application icon for the native exe.
After doing this, you will have to package your application again.
If this doesn't work, follow the steps over here... including an icon into a self-contained JavaFX application (.exe)
In Netbeans open the file project.properties and add the follwing line (replacing the path with the one of your icon file): deploy.icon.native=C:\\icons\\my_icon.ico
I have tried it on NetBeans 8.2 and it worked.
The new build application should be in your dist folder with the new icon. Please note that only .ico images will work. The icon file name should be the same as your application(project).