I have been searching around to see if there was anyway to run a java executable within a c# program, but I cannot seem to work it out or were to begin.
Asked
Active
Viewed 1,236 times
3
-
As in I wanted it to be my application then the java executable in the middle. – iwan jeffery Mar 16 '13 at 19:41
2 Answers
2
If you want to integrate a Java frame into a C# program, take a look at IKVM, that is :
an implementation of Java for Mono and the Microsoft .NET Framework.
otherwise you can simply call the java app packed into a jar file in this way :
Process proc = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.Arguments = @"-jar javaapp.jar";
startInfo.FileName = "java";
proc.StartInfo = startInfo;
proc.Start();

aleroot
- 71,077
- 30
- 176
- 213
0