Mailing Lists: Apple Mailing Lists

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

MRJAppUtils.handleOpenFile Fix (Using Deferred Classloading)???



I'm realizing that the key to MRJApplicationUtils.handleOpenFile() getting called successfully is for my Java app to start with a small stub app. Otherwise, there's that pesky race condition that exists and handleOpenFile never gets called because the JVM is so busy loading all of the classes.

What is the best way to "load" my actual application from the stub app? Is there a way to start a new JRE *within* my app stub? Or do I need to load each of my jar files, package by package, class by class? The problem with this latter approach perhaps is that all of my class files are obfuscated.

How would I go about starting a sub-JRE process within my stub app?

Thanks,
Philip
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



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.