Bug #1357

Updated by Sebastien Jacquot about 5 years ago

JNI CQP std outputs are not redirected to the TXM RCP log console (neither file log?) when running TXM from an installation.
These outputs are well displayed when running TXM from the source and Eclipse IDE.

After some research it seems difficult (impossible?) to precisely manage the output timing and flushing from JNI to Java without modifying je native code.
By doing for example from C code of CQP:
- call
calling Java code inside JNI (e.g. send code but it seems to a Java stream) work well in Eclipse console.
- flush to a file or a pipe from C code consumed by a Java thread (nice example here: http://stackoverflow.com/questions/23352592/redirecting-stdin-and-stdout-of-c-program-in-android)

(For information it seems more simple when running a process rather than using lib through JNI)