18 package org.turro.wd.common.entities;
26 public static void launch(String program) {
30 public static void launch(String program, String params) {
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",
static void launch(String program, String params)
static void launch(String program)