Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 169105

Summary: [launcher] System.out opens a new Console window in Headless RCP app
Product: [Eclipse Project] Equinox Reporter: Ameya Barve <abarve>
Component: FrameworkAssignee: equinox.framework-inbox <equinox.framework-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: egalvez
Version: 3.2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ameya Barve CLA 2006-12-26 20:18:39 EST
Build ID:  M20060921-0945

Steps To Reproduce:
1. Create a Hello World RCP project using the standard wizard.

2. Change the 'run' method of the Application class by adding some Sytem.out.println() statements.  

3. Export the RCP.

4. Launch a Windows DOS Shell, and cd to the folder containing the exported RCP.

5. Invoke the RCP from the command line, ensuring you use "java.exe" as the VM, as in the example below:
myrcp.exe -vm "C:\Program Files\Java\jdk1.5.0_09\bin\java.exe"

6. Notice that the output of the Sytem.out.println() statements (inserted in step 2 above) appear in a *NEW* DOS console window that pops up. They should appear in the same DOS console used to invoke the RCP in step 5.


More information:
Comment 1 Eddie Galvez CLA 2007-01-08 13:41:52 EST
Is this related to what I see in my "headless" RCP app -- that if you throw an uncaught exception, the eclipse launcher / application framework catches it, and tries to display a dialog to tell the user "an error occurred, look at the log file"? Even -consoleLog and -noSplash aren't enough to stop the application from trying to create a Display.
Comment 2 Eddie Galvez CLA 2007-01-16 16:23:16 EST
actually, my previous comment is not another bug -- this bug is affecting us as well; we basically have a console app that does printing to stdout/stderr, and calling the eclipse launcher invariably creates a new command window. This is a killer for us being able to deploy this console application!
Comment 3 Andrew Niefer CLA 2007-04-13 10:29:44 EDT
comment #1:  There is a new argument to suppress dialogs from the launcher: --launcher.suppressErrors.  See bug 172685.





*** This bug has been marked as a duplicate of bug 173962 ***