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: Using Runtime.exec() to open a bundled java app (with options)



David Darby wrote:
| I can't work out how to call the shell within the String[] of cmdArray. 
| Perhaps this is trivial but I'm not particularly good at unix.

I suspect you're trying too hard, because you do it the same way you do "open":

    Runtime.getRuntime().exec(new String[]{"sh", "<path to script>"});

Glen Fisher


 _______________________________________________
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: 
 >Using Runtime.exec() to open a bundled java app (with options) (From: David Darby <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.