why c# console command not running on java?
<p>Can anyone tell me why this c# console command not running on Java?</p>

<p>I've made a C# console program as given below:</p>

<pre><code>using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace face
{
    class Program
    {
        public static void Main(string[] args)
        {
            String path = args[0];
            byte[] imageBytes = File.ReadAllBytes(path);
            MemoryStream ms = new MemoryStream(imageBytes, 0, imageBytes.Length);
            // Convert byte[] to Image
            ms.Write(imageBytes, 0, imageBytes.Length);
            Image image = Image.FromStream(ms, true);
            Bitmap S1 = new Bitmap(image);
            Console.WriteLine(S1.GetPixel(2, 10));
        }
    }
}
</code></pre>

<p>When I run <code>Program.exe image.jpg</code>, I get:</p>

<blockquote>
  <p>Color [A=255, R=128, G=32, B=128]</p>
</blockquote>

<p>Then I created a simple Java application to run the <code>Program.exe</code> executable:</p>

<pre><code>class project 
{   
 public static void main(String[] args)
 {
    String comman="C:\\WINXP\\system32\\Program.exe Sunset.jpg";
    try 
    {
     Process process = Runtime.getRuntime().exec(comman);
     System.out.println(process.getOutputStream());
    } catch (Exception e) 
         {e.printStackTrace(System.err);}
 }
}
</code></pre>

<p>When I try to run the Java application, I get the following error: </p>

<blockquote>
  <p>Program.exe has encountered a problem and needs to close. We are sorry for the inconvenience.</p>
</blockquote>
