Java Program to execute Windows application like notepad, calculator.
Below is the code to execute any windows application (example: notepad, calculator):
import java.util.*;
import java.io.*;
class Notepad
{
public static void main(String[] args)
{
Runtime rs=Runtime.getRuntime();
try
{
rs.exec("calc");
rs.exec("notepad");
}
catch(IOException e)
{
System.out.println(e);
}
}
}
Thank You.