Running Java pgm in C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Smartie
    New Member
    • Dec 2009
    • 1

    Running Java pgm in C#

    Hi,

    I am writing a C# program and want to run a java application and pass it a
    filename as a parameter. I want to be able to write a method in C# that
    will run this Java app for me. Eg. I want to run the following command:

    java MyApplication filename.extens ion

    Can anyone help me?

    Process myProcess = new Process();
    myProcess.Start Info.UseShellEx ecute = false;
    Process.Start(" java Arff","weather. arff");

    This code is not working..
Working...