Process.Start (Java)
-
I am trying to find a way to run a java program from within a C# program using the following; java -Xmx1000M -jar odljava.jar Followed by a filename that may or may not contain wildcards e.g. filename* I have tried using myProcec= Process.Start(java -Xmx1000M -jar odljava.jar) but with no luck. Anyone know how to do this?
David Wilkes
-
I am trying to find a way to run a java program from within a C# program using the following; java -Xmx1000M -jar odljava.jar Followed by a filename that may or may not contain wildcards e.g. filename* I have tried using myProcec= Process.Start(java -Xmx1000M -jar odljava.jar) but with no luck. Anyone know how to do this?
David Wilkes
instead of passing all the arguments in process.Start, have you tried created a new Process instance, then setting the process' .StartInfo.Arguments property to the "-Xmx1000M -jar odljava.jar" arguments?
Tech, life, family, faith: Give me a visit. I'm currently blogging about: God-as-Judge, God-as-Forgiver The apostle Paul, modernly speaking: Epistles of Paul Judah Himango