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.
Geoff
On 10 Jan 2007, at 23:38, Ben Galbraith wrote:
Hi,
I built an OS X application bundle using the JavaApplicationStub
and so forth. It worked for a while, then I made some changes, and
it stopped working (i.e., launching the app when I double-click the
icon). I can't figure out why. I put logging statements in the
first lines of my main method, but they never arrive in the
console. I've studied the Info.plist file, I've tried launching it
using "java" from the command-line (worked fine), reduced it down
to the smallest set of data I thought I could (one JAR, one class)
and no matter what I try, I can't get it to launch.
Obviously, I'm doing something stupid. But I wonder, are there any
tools I can use to troubleshoot what's happening? I've built many
other double-clickable OS X app bundles from Java apps, and all of
them work.
I could start over building the bundle from scratch, etc., but just
wondering if there are some tools, techniques, etc. other than
double-clicking and banging my head against the wall as I've been
doing now.
Thx for any help,
Ben
_______________________________________________
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