in reply to Use of Java modules in Perl

Take a look at Inline::Java. This module does exactly what you are looking for. Take a look at the replies to this node - 392445 which asked the same question.

You can also Super Search for inline java and get some useful info.