aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes System.out.println not showing output in Netbeans 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "System.out.println not showing output in Netbeans 7" Watch "System.out.println not showing output in Netbeans 7" New topic
Author

System.out.println not showing output in Netbeans 7

Bruce Juntti
Greenhorn

Joined: Nov 25, 2009
Posts: 6
I'm wondering of others have run into this weirdness: I'm working on a servlet (a very simple one now) and I was getting "500 Internal Server Error", so I thought I'd put in some breakpoints with System.out.println(). Well, these *USED* print out in the "Output" window in Netbeans 6 (as I recall), but not in Netbeans 7. For the life of me I can't figure out why this doesn't work. I created the famous "HelloWorld" Java application and it works with System.out.println() - I get output in the "Output" window of Netbeans, but apparently it's broken for servlets now? I eventually found my problem that caused the 500 error - no thanks to println.
Anybody know what is going on that it doesn't work? Or how to make it work? Any suggestions for debugging something like this WITHOUT using console output? Thanks!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

I know this is not exactly the answer you are looking for, but I strongly suggest that you use logging for this purpose. And then log to the file and console. At least this way if the IDE does something funky with console output, you still have the log file.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: System.out.println not showing output in Netbeans 7