in reply to Perl from Java

You may want to take a look at the Java module on CPAN. To quote directly from the README:
This module allows you to talk to a JVM on a local or remote machine.You can create objects, call functions, access fields, deal with arrays, get events, & all the nonsense you can do in Java - from Perl!
You run a "JavaServer" program on the machine to which the Java module is to talk, and then code stuff like:
use Java;
$java = new Java;
$frame = $java->create_object("java.awt.Frame","Title");
$frame->setSize(400,400);
$frame->show();
And so on. This is really quite interesting, but it is not particularly secure, as far as I can see. I suppose this is an "opportunity to excel", as they say. I think this may do what you're looking for. It does, however, seem to imply that you'll be doing all of the programming on the Perl side. Not that there's anything wrong with that. More like a feature, actually.