how to bind a windows console application with java application?

前端 未结 2 413
小鲜肉
小鲜肉 2020-12-18 13:42

i have an executable program (.exe) writen in c++ and run on windows console and i have a java swing applecation , so i want my java application to interact with the consol

2条回答
  •  一向
    一向 (楼主)
    2020-12-18 14:02

    You can launch the C++ program from within the Java program which allows you to write to its standard input, and read its standard output. Check the Runtime class.

提交回复
热议问题