Well I did find one thinko. Your module is named POST::iCrypt but your script uses POST_jCRYPT. Perhaps you have both on your system and are looking at the wrong one? Probably not, but it is worth asking.

Assuming that is not the problem, all that I can really say is that your code looks reasonable to me.

I tried installing Inline::Java on my machine. It failed to pass its test suite. I tried running from the partially installed module but it did not find the MainApplet. I didn't try that hard to debug the issue. (I messed with the CLASSPATH a bit then decided I was putting too much work into it.)

At this point I would suggest asking again. You could ask again here, or try emailing inline-subscribe@perl.org to subscribe to inline@perl.org and ask your question there. I would suggest making your question short to attract more responders. Something like this:

I am trying to call Java from Perl using Inline::Java and am having trouble. In this zip file there is a third party Java library MainApplet.class, there is an example where it is called from JavaScript in MainApplet.html and my attempt to call it from Perl in test.pl. The JavaScript version works but my Perl does not.

Can anyone else replicate this problem on their systems or give me an idea of how to fix it?

That you should at least get someone else to try to download and run it to verify the bug.

In reply to Re^3: Problem about NullPointerException when using Inline::Java and Jar file by tilly
in thread Problem about NullPointerException when using Inline::Java and Jar file by macpaul

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.