IPC between Java and C++

后端 未结 3 517
心在旅途
心在旅途 2021-02-11 10:39

My goal here is to make two separate applications (one in Java and other in C++, both on the same machine) read from the same SQLite database. The C++ implementation already wor

3条回答
  •  借酒劲吻你
    2021-02-11 11:23

    Actually I was wrong. I don't need to use JNI to use named pipes in Java. I have successfully communicated these two processes using basic techniques. In java I have just used FileOutputStream and FileInputStream to communicate with the named pipes.

    This link was specially useful to me:

    http://carminedimascio.com/2014/01/named-pipes-with-java/

提交回复
热议问题