Email This Tutorial  
 

Java-Samples.com

Executing other system commands and programs from a Java Program
 
In safe environments, you can use Java to execute other heavyweight processes (that is, programs) on your multitasking operating system. Several forms of the exec( ) method allow you to name the program you want to run as well as its input parameters. The exec( ) method returns a Process object, which can then be used to control how your Java program interacts with this new running process. Because Java can run on a variety of platforms and under a variety of operating systems, exec( ) is inherently environment-dependent.
 
 
 
Recipient's e-mail address * :

(Use commas to separate multiple e-mail addresses.)

Your e-mail address * :
Add your comments (optional) :
 
 
COPYRIGHT© 2006 java-samples.com. ALL RIGHTS RESERVED.