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



Greg,

Thanks again for taking the time. See below:

On Jan 11, 2007, at 11:27 AM, Greg Guerin wrote:
That's a clever use of the standard extensions class loader.
Yeah, but after I thought about, I believe adding a Class-Path attribute to
the app's manifest is a better strategy.

Okay dokey.

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 think you may have missed my point. If your Info.plist ClassPath is very
long, then it doesn't matter whether your app-jar is just a single
HelloWorld class or not.

No worries -- that is exactly what I tried -- removing everything but the one JAR containing the one class.


By the way, what was your command-line when it worked? Did it also have a
long classpath? If so, did it use relative or absolute pathnames?

java -cp cms.jar:[the whole mess of jars here] com.dtsoft.cms.CMSApp

That was generated by my IDE; I just copy and pasted it into the command-line.

You could try something more systematic, such as pointing
CFBundleExectuable to a shell script with chmod a+x, just to see if it's
launching. If so, then you know it's not Launch Services.

Hey, great idea.

Hey, how does Launch Services uniquely identify an app? I assume not
by file name but by some identifier in Info.plist, yeah?

Search ADC for keywords Launch Services: <http://developer.apple.com/search/search.html>

thx


-- 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

This email sent to email@hidden
References: 
 >Re: Java JAR application bundle question (From: Greg Guerin <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.