Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

System.out.Println

 
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
 
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.
 
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.
 
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
 
Well THAT's new! Comfort me, reliable tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic