Class RuntimeTest

java.lang.Object
  extended byRuntimeTest

public class RuntimeTest
extends java.lang.Object

This is a simple example illustrating the exec method in the java.lang.Runtime class. Exec is used to execute a command in the underlying operating system.


Constructor Summary
RuntimeTest()
           
 
Method Summary
static void main(java.lang.String[] args)
          Exec the command passed in as the first command-line arg.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeTest

public RuntimeTest()
Method Detail

main

public static void main(java.lang.String[] args)
Exec the command passed in as the first command-line arg.