I spend ~1 hour to answer my question with no avail. please bare with
me for this dumb question.
How can I let eclipse to show the System.out.println to show its
"console" window?
What I tried:
Created a hello world program, which has System.out.println("Hora!");
when i run the program, Console window showup with gray title with
HelloWorld [Java Application] C:\Program Files\Java\jre1.6.0_02\bin\javaw.exe (date)
but the main window stays blank.
I modified code to have for(int i=0; i<100; i++) and with the variable
window i can confirm that the value of i keep increasing. but it doesnt
show the message.
I checked that I can read what i typed on the console window through
System.in.
I also modified Java Project's property, Run/Debug setting, JRE, and
went to set Runtime JRE to be alternate, and Java executable to be java,
instead of javaw, assuming that javaw is eating the stdout somehow.
this didnt change anything.
Could anybody suggest what else went wrong?
Thank you very much in advance.

Signature
yosuke kimura
Center for Energy and Environmental Resources
The Univ. of Texas at Austin, USA
Andrew Thompson - 15 Jan 2008 23:25 GMT
On Jan 16, 9:46 am, <yos...@ccwf.cc.utexas.edu> wrote:
> I spend ~1 hour to answer my question with no avail. please bare with
> me for this dumb question.
Probably not a dumb question, but I cannot say
I entirely understand you.
> How can I let eclipse to show the System.out.println to show its
> "console" window?
...
> but the main window stays blank.
Yes, it would. System.out.println does not write to
any GUId element (such as JFrame or JWindow) but to
'standard out'.
Note there are 'update' problems when trying
to dump a series of values to a GUI.
To help you further, I would probably need an
SSCCE* to better understand the problem.
* <http://www.physci.org/codes/sscce.html>
--
Andrew T.
PhySci.org
Jeff Higgins - 16 Jan 2008 00:07 GMT
yosuke wrote
> How can I let eclipse to show the System.out.println to show its
> "console" window?
[quoted text clipped - 24 lines]
>
> Thank you very much in advance.
I was able to make the System.output not appear in the console
by setting the foreground color to the same as the background color
in the Preferences : Run/Debug : Console dialog.
JH
Jeff Higgins - 16 Jan 2008 01:42 GMT
yosuke wrote:
> How can I let eclipse to show the System.out.println to show its
> "console" window?
[quoted text clipped - 24 lines]
>
> Thank you very much in advance.
Another way I was able to cause the symptom you describe:
In the Common tab of the Run dialog deselect 'Allocate Console'
an select the 'File' checkbox and specify a place to redirect
the Standard out to.
sebastian.laskawiec@gmail.com - 16 Jan 2008 07:17 GMT
On 15 Sty, 23:46, <yos...@ccwf.cc.utexas.edu> wrote:
> I spend ~1 hour to answer my question with no avail. please bare with
> me for this dumb question.
[quoted text clipped - 31 lines]
> Center for Energy and Environmental Resources
> The Univ. of Texas at Austin, USA
In my applications I have always created special panel with debugging
information. Another way is to create logging system...
Jonatan Kazmierczak - 17 Jan 2008 16:27 GMT
Please run your app outside Eclipse - just in console. You should see
results and it does mean something is wrong with your workspace in Eclipse.
--
Regards,
Jonatan Kazmierczak
SCJP SCJD TC_rated_member
Asm86 Bash C/C++ Java JavaScript Pascal Perl PHP Ruby TCL VB VBScript
yosuke@ccwf.cc.utexas.edu - 17 Jan 2008 20:52 GMT
> How can I let eclipse to show the System.out.println to show its
> "console" window?
Well very embarassing outcome. I reinstalled jdk, and now both stdout
and stderr shows up to the console. I apologize for bring up my silly
trouble that i could have saved myself.

Signature
yosuke kimura
Center for Energy and Environmental Resources
The Univ. of Texas at Austin, USA