Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
FAQ Where does System.out and System.err output go
Revision as of 14:57, 1 May 2011 by Unnamed Poltroon (Talk)
Short answer
- System.out goes to stdout (file descriptor 1)
- System.err goes to stderr (file descriptor 2)
A UNIX computer (including clones like Linux, BSD) users file descriptors to define the input and output streams. Three of them are hardcoded by the system and fixed:
stdin - the standard input stream has file descriptor 0 stdout - the standard output stream has file descriptor 1 stderr - the standard error stream has file descriptor 2