I don't think that this will work, because a .png Image is no .ico Image which you need to use it as an Icon. But if you got the Image you want to use as your Icon you can convert it to .ico with this programm called IcoFX. It's in german but I think you can understand the main funktions.
But if you want a programm with an Icon you can't use the .jar file, because you can't change the icon of this file.
You would have to compile it to an .exe file.
A good programm for this case is JMadEx. It's very simple but works good.