Hi --
Kelvin Wu wrote:
---------- PKG1.pm ----------...
$ENV{CLASSPATH} .= ":/path/to/my.jar";
Why not try the CLASSPATH of Inline::Java?
I had problems when I tried to do your way ($ENV{CLASSPATH}) initially, then I switched over to using the Inline::Java's CLASSPATH. My problem was solved.
May be you can try the following :
use Inline (
Java => 'STUDY',
AUTOSTUDY=> 1,
STUDY => [qw (
java.lang.String
) ],
PACKAGE => 'main',
DIRECTORY => '/path/to/.Inline/',
CLASSPATH => ':/path/to/your.jar:'
);
Remember to see the CLASSPATH in the above code!
hth, -ramki
