Sander A. Smith wrote:
>Thanks Mikey. I turned my Mac off and then back on and lo and behold I
>got the icon I expected. I do have to say that I'm a bit disappointed
>as this the behavior I'd expect from Windows, not from Mac.
This sounds more like a bug or shortcoming in Jar Bundler, rather than a
necessity of developing apps on a Mac. Please file a bug-report against
Jar Bundler.
<http://developer.apple.com/bugreporter>
I have seen this kind of problem before, and I've never had to turn my
machine off and on, though sometimes I've had to restart it. Sometimes a
logout and login is enough to correct it. "Log out" is not the same as
"Shut Down" or "Restart".
Most recently, I saw the problem when I was manually editing the Info.plist
file inside the app-bundle. This would occasionally cause the app to
become unable to receive file-drops on its Finder icon. Since this is the
primary way for my particular app to receive files to process, this was
highly annoying.
I solved the problem by drag-copying the app to another disk partition,
deleting it on the original partition (drag to Trash, then Empty Trash),
then drag-copying the app back to its original place on the original
partition.
When I've had to do this on Macs where I didn't partition the HD, I've
found that a disk-image file works as well as a partition. Create an empty
writable disk-image and mount it. Drag-copy the offending app to it,
delete the original, then drag the copy back from the disk-image. Repeat
when necessary.
Also, there is a command-line tool called 'lsregister' that can update the
Launch Services database, which is where the Finder and others get the icon
and other app-info from. The command isn't located in the normal
command-line location, nor is there a man page for it, so google for
lsregister to read about it. I think 'lsregister -f' to force an update is
what you'll want.
-- GG
_______________________________________________
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
This email sent to email@hidden