File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 39544
    
  27
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 - updated with new look and Ping home screen widget
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: 39544
    
  27
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: printStackTrace (); how do I see what it print?
 
Similar Threads
Throwable methods
flow of any application
JPA UserTransaction not rolled back
problem with exception handling
Giving error : ex might not be initialized