The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Do this....

Posted by Blue on January 22, 2002 at 4:53 AM

import java.lang.System;
import java.lang.Runtime;
import java.io.IOException;
public class loadNotepad
{
public static void main(String args[]) throws IOException
{
Runtime load = Runtime.getRuntime();
// getRuntime() method is a static method which is used to
// obtain access to an object of class Runtime.
r.exec("C:\\windows\\notpad.exe");
}
} // End of class loadNotpad





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us