tags:

views:

94

answers:

3

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.

+4  A: 

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

ob1
+1  A: 

Congratulations!

You asked the 50,000th question about Java!

alt text

Martijn Courteaux
"ste question "? What do you mean?
Eric
Did you mean "50,000"
Eric
+1  A: 

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...

Thorbjørn Ravn Andersen