How to change the default icon of my Processing appIconTest.exe
exported
application in windows ?
The default one :
After some research, the easiest solution i could find is :
...\processing-3.0.1-windows64\processing-3.0.1\modes\java\application
sketch.ico
somewhere you can find (renaming it will help).sketch.ico
(which you might create using GIMP).Important : Be sure to save the default icon, because every application you export (after changing the icon) using Processing, will have this new icon.
You can change the icon of your running application (the icon that shows up in the title bar of the window and the task bar), but I don't think that's what you're asking about. You can't easily change the icon of the file itself.
That icon seems to be coming from the core.jar
Processing library file, so if you want to hack at it, you could try replacing that file in the jar. I really don't recommend that though.
Because the .exe
file that Processing exports isn't really an executable anyway- it's really just a shell that calls the code in the lib
directory. (source)
If you want to create a real .exe
file and have control over its icon, you should look into using a .exe
generator like JSmooth or launch4j or JWrapper.
I would recommend Resource Hacker to change the icon of your programs.