Results 1 to 1 of 1
Thread: Example of RunTime class
-
Example of RunTime class
Following example shows as example of how to use RunTime class.
Java Code:class test extends Thread { public void run() { Runtime r=Runtime.getRuntime(); Process p=null; try { for(int i=0;i<=100;i++) { p=r.exec("net send vishal how r u!"); //p.waitFor(); Thread.sleep(5000); } } catch(Exception e) { System.out.println(e); } } public static void main(String args[]) { test t=new test(); t.run(); } }
Similar Threads
-
runtime method
By roo7 in forum Advanced JavaReplies: 5Last Post: 11-30-2007, 04:35 AM -
Runtime Exceptions
By Java Tip in forum Java TipReplies: 0Last Post: 11-12-2007, 10:31 AM -
Edit JPanel Text During Runtime...from another class
By bdn1404 in forum New To JavaReplies: 5Last Post: 08-11-2007, 03:14 AM -
Nuxeo Runtime 1.3.1
By JavaBean in forum Java SoftwareReplies: 0Last Post: 08-10-2007, 04:45 PM -
Nuxeo Runtime 1.2
By JavaBean in forum Java SoftwareReplies: 0Last Post: 06-22-2007, 06:01 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks