Process process = new Process();
//Path wherein Java is installed in your machine
process.StartInfo.FileName = "java.exe";
//.jar file to be executed
process.StartInfo.Arguments = @"-jar Sample.jar";
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
//Get the output from stream
//in case of no error ExitCode will be zero
//In case of error , get error description
string error = process.StandardError.ReadToEnd();
Tuesday, September 13, 2011
Executing Java .jar within .NET
Subscribe to: Post Comments (Atom)
Architecting Resilient application on AWS
Great whitepaper on improving resiliency of distributed systems: https://docs.aws.amazon.com/whitepapers/latest/availability-and-beyond-imp...
Note : In below scenario jenkins was deployed in Linux container Scenario: Jenkins build failed with error. java.io.IOException: error...
Ever wanted to have a people picker kind of control in Infopath form and that too in browser mode. Did i heard yes :) , well there is a Acti...
Simple concept but still pain in head if unable to figure out :) Response.Redirect("#");
Thank you so much for the post. It is a great help for us! jvmhost
Post a Comment