If your program accepts command-line arguments, then you can use the second parameter of Process.Start, or the Arguments property of ProcessStartInfo, to pass the data to your Java program. (For example, I case of javac program, you can execute “javac MyProgram.java”; here MyProgram.java is the argument). If the Java program is made by you, then adjust it to accept arguments.
Run java program on c# .Net using cmd.
AnkiIt_wizard5
66
Reputation points
I have successfully executed a Java Program using the System.Diagonists.Process method in C# using. But i want to give input for program? How i do this?help me