Try to touch the application bundle itself (e.g. "touch
myapp.app" in Terminal).
That worked as well. Meaning? What went wrong and what got fixed?
LaunchServices (which is what actually launches your app when you
double-click on it) caches information about the app for subsequent
launches. One of the things it caches is the Info.plist. All the
caches are keyed off the last-mod timestamp on the .app bundle
itself (plus any moves/renames/etc from Finder). However, if you
touch the Info.plist directly (without changing anything else),
LaunchServices doesn't know about it, so changes won't get picked
up. All you need to do is either touch the .app bundle in Terminal
(thus updating the timestamp) or move it in Finder, so Finder
notifies LaunchServices. You can, of course, notify LS
programmatically (or you could touch the .app bundle
programmatically as well).
OK, I'll waffle again here. Nothing was touched related to the
Info.plist to cause the problem. I tried changes to it as a fix.
Nothing was changed in the Info.plist or placement of the .icns file.
It is and remains the GenericJavaApp.icns file at Contents/Resources.
Some changes were probably made in Resources/Java directory as far as
creating directories to temporarily unzip files and jar recreate
files trying to get rid of duplicate Name entries in the MANIFEST
warnings. IMO this should not have caused the dock icon to go
missing. So I would have to in fact consider this a fault in Launch
Services, or somewhere, and will file the bug despite the relatively
easy fix.
Thanks again,
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden