How to compile Java from C#?
<p>I'm trying to use the following C# code to compile Java using javac:</p>

<pre><code>Process p = new Process();
p.StartInfo.FileName = "javac";
Directory.CreateDirectory(Application.StartupPath + @"/TempJava");
p.StartInfo.Arguments = "-d "Application.StartupPath + @"/TempJava" + files;
p.Start();
</code></pre>

<p>"files" represents a string variable containing the name(s) of the <code>*.java</code> files. </p>

<p>All in all, I want to create a new folder, and then take the Java files (from where ever they may be located) and compile it into a class file(s) in TempJava.</p>

<p>For some reason, the code doesn't work, no errors, no warnings, but when I run it and check TempJava, there's no files in it.</p>
