Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

System.out.Println

 
dharini thyagaraj
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends,
When i use the fn System.out.Println to display a message, in an applet based program, if i run the applet from the appletviewer, it shows the output on the console window(dos prompt). But, if i run the same applet thru a browser, no output comes on the console window. why so? can anyone pl. help?
regards,
dharini
 
Grant Crofton
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The browser doesn't have anything to do with the 'console' window, so you won't get any output there from an applet.
You might get if from viewing the java console (View->Java console in IE), I'm not sure.
 
Don Arnett
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You started the appletviewer from the console window, therefore there is a relationship between the appletviewer and the console window, ie, the console window is the receiver of the appletviewer's stdout.
But most likely you didn't start the browser thru the console window so that connection isn't there.
 
Stephanie Grasson
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dharini,
Grant is on the right track. When using a browser, you can view the output of System.out.println() using the Java console.
If you are using Netscape, go to the Communicator menu and select Tools - Java Console.
If you are using IE, go to the View menu and select Java Console.
Hope this helps.
Stephanie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic