Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "FAQ Where does System.out and System.err output go?"

 
Line 5: Line 5:
 
if Eclipse is launched using the <tt>javaw.exe</tt> VM.  When Eclipse is launched using
 
if Eclipse is launched using the <tt>javaw.exe</tt> VM.  When Eclipse is launched using
 
<tt>java.exe</tt>, a shell window will be created for the output.
 
<tt>java.exe</tt>, a shell window will be created for the output.
 
  
 
Because the output is usually lost, you should avoid using standard output
 
Because the output is usually lost, you should avoid using standard output
Line 18: Line 17:
 
== See Also: ==
 
== See Also: ==
  
[[FAQ_How_do_I_use_the_platform_logging_facility%3F]]
+
[[FAQ How do I use the platform logging facility%3F]]
  
[[FAQ_How_do_I_use_the_platform_debug_tracing_facility%3F]]
+
[[FAQ How do I use the platform debug tracing facility%3F]]
  
 
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>
 
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>

Revision as of 09:33, 21 June 2006

Most of the time, the answer is nowhere. Eclipse is simply a Java program, and it acts like any other Java program with respect to its output streams. When launched from a shell or command line, the output will generally go back to that shell. In Windows, the output will disappear completely if Eclipse is launched using the javaw.exe VM. When Eclipse is launched using java.exe, a shell window will be created for the output.

Because the output is usually lost, you should avoid using standard output or standard error in your plug-in. Instead, you can log error information by using the platform logging facility. Other forms of output should be written to a file, database, socket, or other persistent store. The only common use of standard output is for writing debugging information, when the application is in debug mode. Read up on the platform tracing facility for more information.


See Also:

FAQ How do I use the platform logging facility?

FAQ How do I use the platform debug tracing facility?


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.

Back to the top