aspose file tools*
The moose likes Java in General and the fly likes Assigning a custom icon to an executable .jar in Windows NT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Assigning a custom icon to an executable .jar in Windows NT" Watch "Assigning a custom icon to an executable .jar in Windows NT" New topic
Author

Assigning a custom icon to an executable .jar in Windows NT

Dave Montalvo
Greenhorn

Joined: Sep 17, 2003
Posts: 5
Anybody know how to assign a custom icon to an executable .jar in Windows?
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1815
I usually don't add the icon to the .jar itself, but rather create a shortcut to the .jar and add the icon there. Don't know if this helps you, but that was my solution.


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

From http://java.sun.com/j2se/1.3/runtime_win32.html :

Icons for Jar-Packaged Applications
You can give your application's Jar file a customized icon. The easiest way to do so is to create a Windows shortcut for your application and set its icon to be your custom icon. This can be done by your application's installer program. You can create a custom icon using any icon editor. An icon editor is contained in many commercial development environment such as Visual C++.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Assigning a custom icon to an executable .jar in Windows NT
 
Similar Threads
custom desktop icons and file extensions
FAQ How to deploy to a .app for Mac & a .exe for Windows
display icon for core java executable jar
how to create exe on windows to run a Swing programm
Include icon image in JAR file and JAR icons