Method exec(String command)
Return type: java.lang.Process
Member of: java.lang.Runtime
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 Process p = Runtime.getRuntime().exec("getenv");
2 process = Runtime.getRuntime().exec("cvs server"); //NOI18N
3 process = Runtime.getRuntime().exec("cvs server"); //NOI18N
4 p = r.exec("command.com /c set");
5 p = r.exec("command.com /c set");
6 p = r.exec( "command.com /c set" );
7 rt.exec("javaw -cp \""+System.getProperty("java.class.path")+"\" -Djdbc.drivers=\""+System.getProperty("jdbc.drivers")
8 Process p = Runtime.getRuntime().exec(command);
9 proc = rt.exec(cmdLine);
10 Runtime.getRuntime().exec(cmd);
11 Runtime.getRuntime().exec(execute);
12 proc = rt.exec(cmd);
13 p = rt.exec(command);
14 Process p= rt.exec(cmd);
15 Process ps = rt.exec (chmod + " +x " + installdir + File.separatorChar + filenames[i]);
16 Process p = Runtime.getRuntime().exec(command + args);
17 InputStream inputStream= runtime.exec(cmd).getInputStream();
18 theRuntime.exec(toExec);
19 Process process = Runtime.getRuntime().exec("rundll32.exe url.dll,FileProtocolHandler " + path);
20 _playerProcess = Runtime.getRuntime().exec( _mpg123exe + PLAYER_PARAMS );
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.