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 file copying, moving, deleting, generation, and even the Java compiling, JAR-ing, and more. The most popular way by far of automating all of this business is Ant. You can read about Ant, and download it for free at http://ant.apache.org. It integrates well with the most popular IDEs, and if you are using Eclipse (http://www.eclipse.org), then you already have Ant.
|
3.144.255.87