1 Reply Latest reply: Jan 7, 2013 9:42 AM by 882147 RSS

    How to change default icon of jar file..

    758606
      dear friends please suggest me how to change default icon of jar file to my own icon...
        • 1. Re: How to change default icon of jar file..
          882147
          You can normally append the ico file in front of the Jar file.
          I did it in the past but not anymore (can't remember why). So no garantee.

          Here is the Ant task for it:
          <concat destfile="build/${app.name}.jar" binary="true">
          <filelist dir="build" files="src/${dir.name}/${app.name}.ico,build/${app.name}Obs.jar"/>
          </concat>

          If you want to change the icon of the started frame, use the API of JFrame.