This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes printStackTrace (); how do I see what it print? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "printStackTrace (); how do I see what it print?" Watch "printStackTrace (); how do I see what it print?" New topic
Author

printStackTrace (); how do I see what it print?

Peter Hammar
Ranch Hand

Joined: Mar 01, 2010
Posts: 34
Hi!

I am trying an connection to an database. It fails and I want to see why...



But how can I see what printStackTrace includes?

Regards
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
How is this code being run? An application that is started from the command line would print its output to that command line window.


Ping & DNS - my free Android networking tools app
Peter Hammar
Ranch Hand

Joined: Mar 01, 2010
Posts: 34
Its a java application that tries to connect to an database when started. I run it from JDeveloper.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
I'm not familiar with JDeveloper, but I'm sure it has a console window somewhere. If not, run the app from the OS's command line/console window.
 
jQuery in Action, 2nd edition
 
subject: printStackTrace (); how do I see what it print?