Lets give an over-basic example, I have a program which goes through a directory and grabs the list of files in the directory. Assume for argument’s sake that this HAS to be done in C++. I then wish to present the list of files using Java Swing?
How is this done?
You can have your C++ program write to Stdout and then your Java program can read from that. You could then have your Java front end execute your C++ back-end and then read the results.
This Article is a good source of information on how to consume stdout/stderr.