I'm trying to use a vendor driver written in Java with a perl program. I've never used java but I have done a bit of perl programming. After looking around the web a bit I found a site, http://www.perl.com/pub/2003/11/07/java.html, that shows using a perl package to wrap the java in an Inline code to let you use it it perl. I tried the sample package with my jar file and then tried to access it like the example showed in another perl file but I'm getting all kinds of errors. I eventually discovered I had to add the CLASSPATH directly with the entire path/filename to get by some of the errors but when ever I try to access the java class I get a undefined subroutine. Is there any other tutorials on using Inline::Java in perl with a jar file or can someone point me in the right direction?? Is the sample package file the website uses the correct way to return the java object in the first place?? Help

In reply to Inline::Java Question by wpflum

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.