gmpassos has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks!

I need to embed Perl into Java for Win32, and I was trying to use JPL, that comes in the Perl sources as an extra option to build, but it tells that it's not working for Win32 yet (from 1999)! Someone knows why this isn't working for Win32?

Actually someone have used JPL? It seems a good idea, specially because we can declare Perl code directly inside a Java class.

Any feedback about that will be appreciated. Thanks in advance. ;-P

Graciliano M. P.
"Creativity is the expression of the liberty".

  • Comment on JPL - Embeding Perl into Java for Win32

Replies are listed 'Best First'.
Re: JPL - Embeding Perl into Java for Win32
by tilly (Archbishop) on Jul 02, 2004 at 02:00 UTC
    Why do you need to embed Perl into Java? If you just want support from a scripting language, then I'd suggest going with jPython. If you need something that is already working in Perl, then I'd suggest having one call the other through some kind of RPC mechanism. If you have some other need, I'd have to hear it described in detail to figure out what I'd suggest.
Re: JPL - Embeding Perl into Java for Win32
by dave_the_m (Monsignor) on Jul 02, 2004 at 01:44 UTC
    I don't belive JPL is being actively maintained.

    Dave.

Re: JPL - Embeding Perl into Java for Win32
by dragonchild (Archbishop) on Jul 02, 2004 at 11:45 UTC
    Another option is something we're implementing right now - use XML-RPC to encapsulate the areas that Perl and Java both need to talk to. We have a Perl app and a Java app that both need to work with the same tables, but those tables are in constant flux. So, we are putting up an XML-RPC layer to hide the details. Took us 30 minutes to get XML-RPC up and running using Frontier::RPC2 as the server. (That included compiling Apache1 and MP1.)

    ------
    We are the carpenters and bricklayers of the Information Age.

    Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

    I shouldn't have to say this, but any code, unless otherwise stated, is untested

Re: JPL - Embeding Perl into Java for Win32
by Arunbear (Prior) on Jul 02, 2004 at 08:26 UTC