Bug #1357

Updated by Sebastien Jacquot almost 6 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 the je native code.
For By doing for example from C code of CQP:
- call Java code inside JNI (e.g. send to a Java stream)
- 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)