Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Quicktime 7.0.4 kills Java application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quicktime 7.0.4 kills Java application



am 18.01.2006 9:07 Uhr schrieb Thomas Much unter email@hidden:

> It should be possible to create an app that contains no stub at all if you
> point CFBundleExecutable in its Info.plist to the System's Java stub

Hm... I'm pretty sure this worked some time ago, but it does not any more
(maybe 10.4.x uses different launch code for application bundles).

Anyhow, here's a solution. Leave your plist entry as follows:

<key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>

Remove the stub from Contents/MacOS/ and replace it with a symlink (not a
Finder alias) to the system's stub:

ln -s
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaA
pplicationStub PathToYour.app/Contents/MacOS/JavaApplicationStub

I'm not sure if archived symlinks are portable all the way down to 10.0, but
at least 10.3 and 10.4 are able to use them even across different systems.

Of course, this solution will break (like the copy scripts) if Apples
changes the framework structure.

bye, Thomas


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Quicktime 7.0.4 kills Java application (From: Thomas Much <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.