O'Reilly logo

Java Garage by Eben Hewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating an Icon for Your Java Application on Windows

Say that you have created your JAR, and created a batch file that performs certain useful tasks such as setting environment variables, and now you want to make it pretty like a real, professional type application. To do this, create an icon, create a shortcut to the .bat file, and then change the icon used by the shortcut.

1.
Right-click on your .bat file or executable JAR file. Select Create Shortcut.
2.
Select Properties.
3.
Click Change Icon….
4.
Choose one of the many icons included with Windows just for a test. Browse to the location of your .ico file and click Apply for the real deal.

Don't be discouraged with all of this deployment business. There are ways of automating all of the necessary ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required