Hello Haider,
I had similar needs about 2 years ago and put together some code to redirect the standard output streams in plain ImageJ (see
https://list.nih.gov/cgi-bin/wa.exe?A2=IMAGEJ;6cbb8c7e.1302). The original code and documentation can still be found here:
http://staff.fh-hagenberg.at/burger/imagej/index.html ("Redirect_System_Streams"). Perhaps it works for you (for Java output at least).
A more recent version is contained in the 'imagingbook' library (
https://sourceforge.net/projects/imagingbook/) -- unfortunately SourceForge is down at the moment.
--Wilhelm
________________________________________
From: ImageJ Interest Group [
[hidden email]] On Behalf Of haider riaz [
[hidden email]]
Sent: Thursday, July 16, 2015 01:49
To:
[hidden email]
Subject: Print Statements
Hello,
I recently developed an ImageJ plugin (
https://github.com/haiderriazkhan/CANDLE-J <
https://github.com/haiderriazkhan/CANDLE-J>) called CANDLE-J. CANDLE-J has its main interface written in Jython; but it also has components written in Java and C. The problem is that the ImageJ “Log” window does not print statements from the Java and C components. I need the print statements to update the user about the progress of the program (the statements serve as kind of a progress bar). It would be nice to have them. Any help?
Best
Haider
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html