Hello,
depends on how you start your java program. I guess you are using the command line.
Now the question is which operating system you're using. I'll describe options for Linux and DOS/Windows:
(1) Linux (or probably most UNIX variants);
Open first terminal and enter the following command to start the class:
java myclass 2>&1 /tmp/log
To see what's happening while the program is running, do something like
tail -f /tmp/log | less
(2) DOS/Windows:
You can try something similar like in (1), but the DOS command line is crap, so I recommend the following:
use the text editor "textpad" (
to start the java application ! You can customize textpad to run a java application using a hotkey and to capture the output to an editor window - in there you can search, scroll up & down, cut/copy/paste and more (textpad is shareware with the only restriction of a dialogue which gets annoying, but it's worth every cent of the $25 you pay for it).
Textpad rules !
Rgds
Holger