Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java JAR application bundle question




On Jan 10, 2007, at 6:12 PM, Geoff Levner wrote:

If I recall correctly, when something goes wrong while launching an application package, launch services sets a flag somewhere indicating that there is a problem with it and thus cannot be launched. And sometimes that flag can remain set even after you have corrected the original problem. So you might try one of two things: 1) do some googling to find out where that flag is, so you can maybe figure out a way to reset it; or 2) make a new application package, copying or moving the files from the broken package.

From my .bash_profile

alias lsregister=/System/Library/Frameworks/ ApplicationServices.framework/Frameworks/LaunchServices.framework/ Support/lsregister

might be the Launch Services interface you're talking about and what you'd want to google on.
No args gives you some usage info.
This a sort of interesting somewhat recent post
http://lists.apple.com/archives/Java-dev/2006/Sep//msg00023.html
for regex parsing the dump output.
To reset with "-kill" you reset the entire ls database. So sort of a last resort there but it should clear any error flags there might be.


Actually I have this...
http://users.spacestar.net/mikehall/javasrc.html#appedit
that does some poking around application bundles.
Bit of a mess.
http://www.spacestar.net/users/mikehall/AppEditVerify.dmg
is an application that is supposed to do a diagnosis of applications that fail to launch.
One reason it's standalone is so it's not quite so caught up in all the mess of the appedit stuff.
Drag yours to it if you want to try it. You might make it a duplicate to yours that you drag to be safe.
If it doesn't help on your problem but you figure out what is wrong with yours you could let me know and I could add checks to this code for your problem.


I started
http://users.spacestar.net/mikehall/javasrc.html#ls
which was supposed to a nice interface to the launch services related stuff. And especially fix the launch services out of sync problem
http://users.spacestar.net/mikehall/javasrc.html#odoc
But haven't put effort into it for a while.
Almost too incomplete to mention.



Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Java JAR application bundle question (From: Ben Galbraith <email@hidden>)
 >Re: Java JAR application bundle question (From: Geoff Levner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.