How can I change the icon of a .JAR
file I want to distribute? I have changed the icon that shows when the program is run, but I want to change the icon in the environment (e.g. Windows XP), that is for the file itself. I googled, but the best I could find is converting the .JAR
to a .EXE
, which is not the best choice.
The icon is a decision of the OS, not yours :-(
In a specific client you can change the local settings for the .JAR extension, but not as a general distribution mechanism
This is a limitation in the Java integration with the underlying operating system. The jar file format does not have room for the icon data, and then Windows does not easily support pulling out icons from data files, and the Java installation method does not add any hooks to Windows Explorer that could pull out the icons (if there was actually room for any).
The Sun bug report on this is http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4193740, and is only 12 years old...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With