Mailing Lists: Apple Mailing Lists

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

Finding an application?



I'm developing an application that needs to be able to launch a helper application that's part of the same suite. Users can also run the helper on its own, so I have two separate application bundles. What's the best way for my main application to determine the path to the helper so it can Runtime.exec() it? I'm not too worried about locating the executable within the bundle so much as what happens if the user moves or renames the helper.

My current plan is to look for the helper in a fixed location relative to the main app and if it's not there display a file dialog. There's no equivalent to the old MRJFileUtils.findApplication() by signature method though, is there? Any solution really needs to work with both 1.3 and 1.4 (or later).

-Rolf
--
Rolf Howarth, Square Box Systems Ltd, Stratford-upon-Avon UK.
_______________________________________________
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


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.