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.
dshrenikAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
for_yanConnect With a Mentor Commented:
probably not. But it is not a java issue - can you have some of the .txt files with different icon? I'm not sure.
0
 
for_yanCommented:

You should have in your frame constructor:
 this.setIconImage(Toolkit.getDefaultToolkit().getImage("image.gif"));
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
dshrenikAuthor Commented:
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.
0
 
for_yanCommented:
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
0
 
dshrenikAuthor Commented:
This will change the icon for all jars right?
Can I do it only for my application?
0
 
dshrenikAuthor Commented:
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?
0
 
dshrenikAuthor Commented:
0
All Courses

From novice to tech pro — start learning today.