Vishal,
You can use the runtime mode (bind) in a BEGIN block to do this:
BEGIN {
$ENV{'CLASSPATH'} = 'C:\Sonic\MQ6.1\lib\certj.jar';
}
BEGIN {
eval{
require Inline ;
Inline->bind(Java => 'STUDY', STUDY =>
['com.rsa.certj.xml.Transformer']);
};
}
print "/n I came o
Is there a way to prevent the program from dying in such a case? For example, I
was trying to do the following:
BEGIN {
$ENV{'CLASSPATH'} = 'C:\Sonic\MQ6.1\lib\certj.jar';
}
eval{
use Inline Java =>
>
> [C:\sonicMQ-Perl]test.pl
> java.lang.NoClassDefFoundError: com/rsa/jsafe/JSAFE_Exception
> at com.rsa.certj.xml.Transformer.(Transformer.java:91)
Seem like Inline::Java is trying to load
com.rsa.certj.xml.Transformer, but during the class initialisation
(static member?, static block?),
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 30, 2005 11:43 AM
> To: inline@perl.org
> Subject: Inline Java Weird Error
>
>
> The resulting error was:
>
> --
> -