thanks

-----Original Message-----
From:   my600080 (mingqi...@gmail.com)
Date:   Wednesday, March 31, 2010  02:54 PM
To:   inline@perl.org (inline@perl.org)
Subject:  Java Inline print stack trace

Hi,

When I used java inline eval {};, I cannot get the whole exception
stack trace. For example,
eval {
 my $uri = new java::net::URI($fileURI);
};
if ( $@ ) {
 print $...@->getMessage();
 # But how can I print the whole stack trace?
}
I tried to use $...@->printStackTrace() but it kept generating the
following error: Can't call method "getStackTrace" without a package
or object reference.

Thanks for the help!

Reply via email to