import java.io.IOException; public class RuntimeExec{ public static void main(String[] args){ try { Process process = Runtime.getRuntime().exec("notepad.exe"); }catch (IOException e) { e.printStackTrace(); } } }