Java Runtime exec() method by import java.io.IOException; public class Test { public static void main(String[] args) { try { Runtime.getRuntime().exec("notepad"); } catch (IOException e) { e.printStackTrace(); } } }import java.io.IOException; public class Test { public static void main(String[] args) { try { Runtime.getRuntime().exec("notepad"); } catch (IOException e) { e.printStackTrace(); } } } Please Share Categories Java difference between callable and runnableShutdown system in Java