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!

DOS as programming environment

Status
Not open for further replies.

Chrissirhc

Programmer
May 20, 2000
926
GB
Hello can anyone help
I sometimes use DOS to compile and run my Java programs there are two problems with this. When compiling I find myself trying to hit the break key so I can see what the first few errors are. When I run the program if I have alot of output to the screen I cannot see it all.

Has anyone a solution to this problem?
 
You can use the redirection operator ">" under DOS, just like under UNIX shells :

prompt> java foo.fooClass > aFile.txt

It just redirects the std output in "aFile.txt" so you can see your output in a offline way, enjoy!

Hope this will help you, bye.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top