|
static void | launch (String program) |
|
static void | launch (String program, String params) |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 24 of file WdRuntime.java.
◆ launch() [1/2]
static void org.turro.wd.common.entities.WdRuntime.launch |
( |
String |
program | ) |
|
|
static |
Definition at line 26 of file WdRuntime.java.
static void launch(String program)
◆ launch() [2/2]
static void org.turro.wd.common.entities.WdRuntime.launch |
( |
String |
program, |
|
|
String |
params |
|
) |
| |
|
static |
Definition at line 30 of file WdRuntime.java.
31 String os = System.getProperty(
"os.name");
33 if(
"Windows 2000".equals(os) && !(program.startsWith(
"http:") || program.startsWith(
"file:")))
34 Runtime.getRuntime().exec(
38 program.replaceAll(
" ",
"^ ") + (params !=
null ? params :
"")
40 else if(os !=
null && os.indexOf(
"Windows") > -1)
41 Runtime.getRuntime().exec(
47 program + (params !=
null ?
" " + params :
"")
53 else if(os !=
null && os.indexOf(
"Linux") > -1) {
54 Runtime.getRuntime().exec(
57 program + (params !=
null ?
" " + params :
"")
61 }
catch(Exception ex) {
62 java.util.logging.Logger.getLogger(
"turroclient").log(
63 java.util.logging.Level.SEVERE,
64 "TurroRuntime.execute",
The documentation for this class was generated from the following file: