ALPESH KOTHARI wrote:

> Hi,
>
> When I added 'System.out.printStackTrace()' it told
> while compilation
> Method printStackTrace() not found in class
> java.io.PrintStream.
>
> System.out.printStackTrace();
>
> I have imported java.io.*;
> What else I need to do?
> I have included postgresql.jar in my jar file.
> My classes are all in the same directory.
>
> Thanking You,
> Alpesh
>

Alpesh,

Postgresql.jar has nothing to do with it.
As the compiler says, there is no method printStackTrace() in
java.io.printStream.

Perhaps what you want is something like:

try {
    // something
} catch (Exception ex) {
    ex.printStackTrace(System.out);
    // or just ex.printStackTrace() which will appear on System.err
}

--
David Marshall           email: [EMAIL PROTECTED]
VM Systems, Inc.         phone: 1-941-596-2480
Naples, FL USA           fax:   1-941-596-2483




----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to