Inline-Java - class not found at inline java.pm line 618

Posted on Mon Jul 24 18:49:18 2006 by akho
class not found at inline java.pm line 618
Hi, I am new to perl and inline::java. I'm writing a test program to call existing java code from perl. Here's the perl code.
#!/usr/bin/perl use lib 'C:/Inline-0.44'; use lib 'C:/Inline-0.44/lib'; use lib 'C:/Inline-0.44/blib/lib'; use Inline REPORTBUG; print("Hello, world!\n"); BEGIN { $ENV{CLASSPATH} .= ":C:/test/dist/Utility2.jar"; } use Inline ( Java => 'STUDY', STUDY => ['java.util.HashMap'], ); my $hm = new java::util::HashMap() ; $hm->put("key", "value") ; my $val = $hm->get("key") ; print($val . "\n") ; # prints value use Inline ( Java => 'STUDY', STUDY => ['com.follett.fheg.efollett.utility.validation.security.InputSecurityValidationService'] +, ); my $isvs = new com::follett::fheg::efollett::utility::validation::security::InputSecurityValidation +Service my $boolean = $isvs->validateInput("testing validation"); print($boolean . "\n") ; # prints boolean
The error I'm getting is: Class com.follett.fheg.efollett.utility.validation.security.InputSecurityValidationService not found at C:/Perl/site/lib /Inline/Java.pm line 618 BEGIN failed--compilation aborted at test1.pl line 24, <GEN7> line 6. InputSecurityValidationService is in Utility2.jar. I appreciate any help. Thanks!
Direct Responses: 2688 | Write a response