Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error message not visible

Status
Not open for further replies.

DKL01

Programmer
Sep 14, 2000
233
US
Hello All:

Sometimes the runtime error message thrown by java application on command prompt is not visible fully. We can see only last few lines if error message is too big. Is there any way we can look at the whole message.

Thanks
Dilip

 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top