http://www.perlmonks.org?node_id=612896


in reply to Inline::Java and jar files?

Make sure your .jar file is found in a directory listed in your CLASSPATH variable. It's sort of like the PERL5LIB var for Perl as a mechanism to extend @INC.

-- More people are killed every year by pigs than by sharks, which shows you how good we are at evaluating risk. -- Bruce Schneier

Replies are listed 'Best First'.
Re^2: Inline::Java and jar files?
by blue_cowdawg (Monsignor) on May 01, 2007 at 05:00 UTC
        Make sure your .jar file is found in a directory listed in your CLASSPATH variable.

    Hmmm... actually CLASSPATH points directly at the jar file... Changing to point to the directory the jar sits in did not change the misbehavior of the script...


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
      Not the CLASSPATH environment variable. The one you tell Inline::Java aboout:
      use Inline Java => <<'END', CLASSPATH => '/path/to/my.jar'; /* java code here */ END
      Phil
      The Gantry Web Framework Book is now available.

        Tried it that way too... same result.


        Peter L. Berghold -- Unix Professional
        Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
      Then org.bcdc.hbm.services doesn't exist, or doesn't provide PeopleService ....