Link to home
Start Free TrialLog in
Avatar of dshrenik
dshrenikFlag for United States of America

asked on

Set icon for executable .jar

Please let me know how I can set my custom icon for the executable .jar when I export my project from eclipse. I do not want the default java logo.
Avatar of for_yan
for_yan
Flag of United States of America image


You should have in your frame constructor:
 this.setIconImage(Toolkit.getDefaultToolkit().getImage("image.gif"));
Avatar of dshrenik

ASKER

That is changing the icon only on the titlebar, not the main image Icon that gets displayed on the desktop or wherever the jar is located.
This is done within windows - open MyComputer - go to menu - Tools-Folder Options - File Types - select .jar - Advnced - there you can specify file for the icon
This will change the icon for all jars right?
Can I do it only for my application?
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I guess you're right.
One of the solutions here says that I have to create an executable front door for this:
http://stackoverflow.com/questions/3919647/how-to-change-default-jar-icon

Do you have any idea how that can be done?