if u wants to open a note pad just follow itRuntime, Process class of the java gives such facility , after that writecommand,p.exec("notepad");where p is the object of class Process.