tips:java:launchappwithspace
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | tips:java:launchappwithspace [2009/06/08 12:03] (current) – created erik | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Launching an Application with a Space in its Name ====== | ||
+ | |||
+ | Using [[http:// | ||
+ | |||
+ | Under Windows, you need to quote the application name: | ||
+ | |||
+ | <code java> | ||
+ | Runtime.getRuntime().exec(" | ||
+ | </ | ||
+ | |||
+ | or use a String array: | ||
+ | |||
+ | <code java> | ||
+ | Runtime.getRuntime().exec(new String[]{" | ||
+ | </ | ||
+ | |||
+ | Under Mac OS X, you need to call open: | ||
+ | |||
+ | <code java> | ||
+ | Runtime.getRuntime().exec(new String[]{" | ||
+ | </ | ||
+ | |||
+ | Under Linux, you must use a String array: | ||
+ | |||
+ | <code java> | ||
+ | Runtime.getRuntime().exec(new String[]{" | ||
+ | </ |
tips/java/launchappwithspace.txt · Last modified: 2009/06/08 12:03 by erik