Dot Net. Wednesday, July 04, Though executable jar file itself is runnable, a non technical user may find it difficult and weird to launch it from command prompt. In order to provide a user friendly interface, it is good to make a windows forms application in dot net and call the executable jar file at the background. Process class from dot net framework can be used to achieve this.
Process class enables you to start new processes, invoke executable files from your dot net application. The Process class also has methods to redirect the standard output and read it in your windows application. The below code snippet can be used to call an executable jar file from dotnet windows application.
ProcessStartInfo ProcessInfo;. Process process;. Start ProcessInfo ;. WaitForExit ;. I changed my C program to call this batch file instead. The batch file opens, executes, and gives me an error message. The error is: "Unable to access jarfile myProgram.
Am I going about this completely the wrong way? Do I need to do something specific to allow the. Totally stuck here. September 6th, , PM 2. Re: C program calling. September 7th, , PM 3. Join Date Aug Posts 13, The jar file runs under Java. Here's the launch code: Code:. My Code Guru Articles. September 11th, , AM 4. Lemme mess around a bit with what you gave me and see if that works.
FullName; proc. Start ; proc. IPC" string. I'd recommend, instead of doing that kind of concatenation, using string format, it's much … Jump to Post. Do you agree with me? Jump to Post. Hi, Thanks for the reply. Thanks, Srikanth this line is probably the error proc. Hi, I'm sorry for being unclear. Thanks for the support.
No problem. Facebook Like. Twitter Tweet. Be a part of the DaniWeb community. Sign Up — It's Free! Reply to this Topic. This question has already been solved! The person who asked this question has marked it as solved. Solved questions live forever in our knowledge base where they go on to help others facing the same issues for years to come.
Are you sure you have something valuable to add that has not already been mentioned?
0コメント