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


Comments

Popular posts from this blog

Check MySQL query history from command line

Installing chocolatey on Windows