    java.io.File&nbsp;dir,
                       boolean&nbsp;useVM)
                                throws java.io.IOException</pre>
<div class="block">Creates a process that runs a command.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>project</code> - the Project, only used for logging purposes, may be null.</dd><dd><code>command</code> - the command to run.</dd><dd><code>env</code> - the environment for the command.</dd><dd><code>dir</code> - the working directory for the command.