Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2008

Tip: Looking for answers? Try searching our database.

console in eclipse

Thread view: 
yosuke@ccwf.cc.utexas.edu - 15 Jan 2008 22:46 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.