This probably means that some code you are using can't find a specific class. Try putting eval around you script like this see what's going on:
use Inline::Java qw(caught) ;
eval {
# ...
} ;
if ($@){
if (caught("java.lang.Exception")){
# Java exception...
my $msg = [EMAIL PROTECTED]>getMessage() ;
print($msg . "\n") ;
}
else{
# It wasn't a Java exception after all...
die $@ ;
}
}Cheers,
Patrick ---------------------------------- | Patrick LeBoutillier | [EMAIL PROTECTED]
From: "Williams, Ken" <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Subject: NoClassDefFoundError Date: Mon, 20 Oct 2003 16:57:02 -0500
Hi,
I'm using Inline::Java and getting an error I can't quite pin down. It doesn't help that I'm still a Java weakling, because it means I don't quite know how/where to trace things.
The error I'm getting is:
main::java::lang::NoClassDefFoundError=HASH(0xa594ec)
How can I tell which class isn't found? Any magical Java tricks? I think the class is in an external library I'm calling.
Adding DEBUG=>1 doesn't shed much light in this case.
-Ken
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
