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.
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();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With