Copying file to .jar file results in an error
<p>I am attempting to copy a zip file to a jar file in a C# method like this:</p>

<pre class="lang-cs prettyprint-override"><code>ProcessStartInfo start = new ProcessStartInfo();
start.FileName = "java.exe";
start.WorkingDirectory = @"C:\mydir\";
start.Arguments = @" -jar example.jar example.zip";
Process java = new Process();
java.StartInfo = start;
java.Start();

var stdOut = java.StandardOutput.ReadToEnd();
java.WaitForExit();
Console.WriteLine(java.ExitCode.ToString());
</code></pre>

<p>The problem is that I am receiving this error:</p>

<p><strong>Error: Unable to access jarfile example.jar</strong></p>

<p>I've confirmed that both example.jar and example.zip exist in the Working Directory and have also written a batch file that I can run and create a .jar file that is almost identical:</p>

<pre><code>jar -cf example.jar test.zip
</code></pre>

<p>I was able to run this without issue with this code:</p>

<pre><code>const string batchFile = @"C:\mydir\batJar.bat";
System.Diagnostics.Process.Start(batchFile);
</code></pre>

<p>My environment variables (Windows 7) are also set up properly.</p>
