How to call a Java program from .Net?

I have a small java program responsible for sending messages via mobile phone and which is my own program on a PC. But we will not convert it to .net, but it can be done using dos cmd, for example:

java jar my_send_message.jar -p 12345678 -m This is a testing message. 

How can .net be used with this small program? Thank you

+4
source share
1 answer

You can process it using Process , as described here: How to: Run the command line in C #, get the results STD OUT

+2
source

Source: https://habr.com/ru/post/1384638/


All Articles