On a double-clicked launch failure, are there any messages in the
console log?
See /Applications/Utilities/Console.app, the window labeled
console.log.
Yup, checked console, system, and every other log file that the
Console exposes. Nothing.
If it works from the command-line, the most likely possibility is a
malfunctioining Info.plist. Looking at the Info.plist you posted in a
later message, the first thing that strikes me is "Holy crap,
that's a long
class-path". The problem might be that you're exceeding some limit on
classpath, what with the expansion of $JAVAROOT and all those
elements.
Heh.
The way to do that in an app-bundle is to define this Java property:
java.ext.dirs
to have this value:
$JAVAROOT:/System/Library/Java/Extensions:/Library/Java/Home/lib/ext
That's a clever use of the standard extensions class loader.
Another strategy is to coalesce the myriad jars into a smaller number,
possibly 1, and then use the normal ClassPath array key.
I actually tried to run a very simple class that just printed an
entry to the console and references no other classes, just put it in
the classpath, and double-clicked on the app. It failed, too.
I was hoping folks would say, oh yeah, just use the Launch Services
Debug Widget, it'll tell you exactly what's wrong. Oh well. I guess
I'm reduced to just fumbling around some more, perhaps rebuilding the
Info.plist from scratch, to see what the #($*#)( is the matter.
Hey, how does Launch Services uniquely identify an app? I assume not
by file name but by some identifier in Info.plist, yeah?
Ben
Yet another possibility is to use the Class-Path attribute in your
app's
jar manifest, which is a list of relative URLs to other jars. This
works
in command-line and bundled apps. It's a standard part of manifest
support. Search the list archives for keyword manifest for additional
information.
-- 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
_______________________________________________
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