I have a some jdbc stuff in my constructor and i want to use printStackTrace in my catch block so that i can see the error msg. However, it is not working and here is the msg i saw after compiling "'void' type not allowed here". Can anyone explain to me how to use printStackTrace()? Thank you!
I think you are passing printStackTrace() as a parameter to System.out.println().just check your code, if you are doing so. Actually simple printStackTrace() is enough and you need not pass it to System.out.println() for printing it. If you still hv this problem, plz post the code you hv written in catch block.
------------------ Amit Agrawal, New Delhi, India. [This message has been edited by A Agrawal (edited July 27, 2001).]