Mailing Lists: Apple Mailing Lists

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

runtime.exec



IBM provided a web browser plugin for the Eclipse web tools project. It uses runtime.exec to launch external programs, specifically web browsers. It requires a configuration file that has the full path to the executable, e.g., ../Safari.app/Contents/MacOS/safari. This method of invocation has some problems. Since the 'launch service' isn't invoked, if the browser is already running the browser will either (1) refuse to run because an instance is already running(camino), or (2) insist that a profile different than the running instance be selected or it will not start(mozilla based). This doesn't happen on the windows platform where the current instance is invoked or a new one started if none are running. On Linux, the mozilla based browsers at least have a special call parameter. -remote, that allows the current call to be handled by the running instance of the browser, providing the same behavior as windows.
There are other problems specific to Safari and IE but first I would like the behavior to match the experience in the MS and Linux environments. And the call has to be portable java; Mac specific code can't be used. This plugin has to run on any platform. Is there a way to have runtime.exec invoke the launch service on the application bundle?
_______________________________________________
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.