• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAR + File Icons

 
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have searched for this and have come to the conclusion that the operating system sets the default icon image for JAR files. I see that you can use JSmooth and other programs to help you do this or put a wrapper over the file. I have found that you can also create a shortcut and put an icon image over the shortcut. Is there any way to directly put an icon image on the JAR file without using additional programs? Lastly, I heard you can put an icon image on the JAR file by using a batch script. If this is true, how do you do it?
Thanks,
John Price aka cc11rocks
 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Windows you can only assign an icon to a specific file if it's an executable file type. (I assume that when you said "the operating system" you meant "Windows".) That would be EXE and BAT files and nothing else. (So yes, you can write a batch script which calls java.exe to run a jar, and assign an icon to the script.) You can't assign an icon to an Excel spreadsheet file, for example.
 
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As far as I know, BAT files don't have their own icon either, only EXE files and shortcuts.
 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob Spoor wrote:As far as I know, BAT files don't have their own icon either, only EXE files and shortcuts.


Thank you.
cc11rocks aka John Price
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic