aspose file tools
The moose likes Swing / AWT / SWT and the fly likes How to give Icon to a Jar file ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to give Icon to a Jar file ?" Watch "How to give Icon to a Jar file ?" New topic

How to give Icon to a Jar file ?

Rite Sara
Ranch Hand

Joined: Feb 13, 2010
Posts: 56

I have created a jar file. I want to give a customized icon to this jar instead of the default icon that is there.
Please let me know how we can do this ..

Rob Spoor

Joined: Oct 27, 2005
Posts: 19905

JAR files do not have icons. The icon is given to it by Windows solely based on the fact that the extension is .jar, and there is a file association for .jar with that icon defined.

The best you can do without using Launch4J or similar tools to turn the JAR file into an EXE file is use a Windows shortcut. You can give these any icon you want.

How To Ask Questions How To Answer Questions
Darryl Burke

Joined: May 03, 2008
Posts: 4754

Or launch the application using Java Web Start. Google search "jnlp shortcut icon"

luck, db
There are no new questions, but there may be new answers.
subject: How to give Icon to a Jar file ?