$ perl -c lari.pl lari.pl syntax OK (in cleanup) In method DESTROY of class main::org::apache::log4j::Logger: Can't find object 0 for thread IJST-#0 at /home/alex/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Inline/Java/Object.pm line 357 at lari.pl line 0 ... (in cleanup) Unknown Java object reference main::org::apache::log4j::Logger=HASH(0x17d88c0) at lari.pl line 0 #### # set the java classpath (it is assumed that the jars are in the same folder as this script) BEGIN { $ENV{CLASSPATH} .= ":.:lari_typecheck.jar:log4j-1.2.14.jar:postgresql8jdbc3.jar"; } # use Inline::Java and tell it to study the classes that will be used use Inline Java => 'STUDY', STUDY => ['lari_typecheck.ArchiveObject', 'org.apache.log4j.Logger', ], AUTOSTUDY => 1;