Sep 13, 2018

How to call / execute shell / external command from Java

Runtime.getRuntime().exec can be used to executes the specified string command in a separate process. In general it is better to use ProcessBuilder API. Example: