Can any one help me to find solution to display icon for an executable jar which i am going to distribute.
Here the issue is i am not using either swings or applets.
So, is it possible with core java executable jar ?
Stephan, can you give steps how to make wrapper executable jar with icon. I mean where to place icon and how to call it, either in manifest file or how. I'm bit new to this.
Rob, I don't think I can use that if I want to distribute this jar together with that icon. If there is any possibility please let me know.
Stephan van Hulst
Joined: Sep 20, 2010
No, a wrapper executable is simply a small program in a native language, that has the icon built in, and has the only task of starting up the JVM with your program.
Rob's solution is more elegant. I don't know about other operating systems, but in Windows, you can create a new shortcut through the context menu (right mouse button) and have it link to your Jar. Then, right click the shortcut and go to properties, and you can embed an icon into it.
You will have to provide different shortcuts for different OSes.