in reply to Calling Java through CGI Script

If you think you might need to do this often, you should check out Inline::Java. You can find some other info about that module on perl.com here and here.