This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 41124
    
  45
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: 41124
    
  45
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: printStackTrace (); how do I see what it print?
 
Similar Threads
Throwable methods
Giving error : ex might not be initialized
problem with exception handling
flow of any application
JPA UserTransaction not rolled back