2

How to change the default icon of my Processing appIconTest.exe exported application in windows ?

The default one :

app icon to change

0

3 Answers 3

7

After some research, the easiest solution i could find is :

  1. Go into ...\processing-3.0.1-windows64\processing-3.0.1\modes\java\application
  2. Save sketch.ico somewhere you can find (renaming it will help).
  3. Place the icon you want to use in the same folder with the same name sketch.ico (which you might create using GIMP).
  4. Now you can export your application from Processing.

Important : Be sure to save the default icon, because every application you export (after changing the icon) using Processing, will have this new icon.

3

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.

1
  • Thanks for the answer ! i'll check these. And yeah the solution i found was to hack the processing library, replacing the default icon by another one with the same name and it worked. i'll post this as an answer to my question! thank you again Dec 31, 2015 at 16:18
1

I would recommend Resource Hacker to change the icon of your programs.

  1. Install Resource Hacker (latest build).
  2. Go to your executable file.
  3. Open it with Resource Hacker (right mouseclick, and there should be an option to do that or else you could just click open with).
  4. It will open and show some directories, also one called "Icon", open that one, and right click one one of the icon files (stars with some numbers after that), there will be an option: "replace icon ... Ctrl + R", click that one and replace your icon.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.