2

I finished a program, and it has an icon. When I double click on the .app, it appears in my dock as a java app, not using the icon I chose for it. I am on snow leopard. How do I make it so that the icon I choose for it is the one on the dock?

Thanks in advance.

Impmaster
  • 187
  • 2
  • 10

1 Answers1

0

Does your Info.plist (in the Application Bundle) specify an icon? For example:

MyApp.app/Contents/Info.plist:

<key>CFBundleIconFile</key>
<string>myicon.icns</string>

And does your .app contain the icon? For example:

MyApp.app/Contents/Resources/myicon.icns
martinez314
  • 12,162
  • 5
  • 36
  • 63
  • My Info.plist does specify an icon, and OS X sees it in Finder with that icon. However, when I open it on the dock, it has the default Java app image. – Impmaster May 03 '13 at 14:47
  • CFBundleIconFile is the "legacy" way to do it, according to the Apple docs now. However, they don't explain how to do it the "new" way! ARggg – phreakhead Nov 09 '14 at 21:03