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
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
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
How is this code being run? An application that is started from the command line would print its output to that command line window.
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
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
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?