views:

503

answers:

3

Hi all,

Just finished a little app that I want to distribute and at the moment for windows platform it is just an executable jar. Is there anyway to give this jar another image than the java cup?

Thanks

+1  A: 

If you are talking about the image in whatever file manager you are using, then it is provider by your OS. If you are talking about the icon in the application's window, you can change it with Window.setIconImage

Maurice Perry
+3  A: 

I think you're referring to the way that the jar file shows up in Windows Explorer? If so, it's probably an OS setting (needing intervention on a machine-by-machine basis).

jasonnerothin
Suspected that :( Have to find me a nice exe wrapper then.
willcodejavaforfood
first place I went :)
willcodejavaforfood
A: 

You can create a shortcut to the JAR file, and then you can change the shortcut's icon.

cd1