Inviking Perl from Java

20 views
Skip to first unread message

Maudrit Martinez

unread,
Sep 16, 2008, 7:43:06 PM9/16/08
to discu...@miamijug.org
MJUG,

I'm looking for a reliable and scalable way to invoke Perl from Java.

Do you know about any framework or libraries?

--
Maudrit Martinez

"A designer knows he has achieved perfection not when there is nothing
left to add, but when there is nothing left to take away" ~Antoine de
Saint-Exupery

Eugenio Alvarez

unread,
Sep 17, 2008, 10:33:03 AM9/17/08
to discussio...@googlegroups.com
Maudrit,

Some options:

1) Use Runtime.exec():
I have reliably invoked third party programs using Runtime.exec().
However, you can't use Runtime.exec() directly without handling details
like stdout/stderr.
The following article covers most of the bases regarding using
Runtime.exec()
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

2) Use a web/restful service to wrap the perl functionality:
Something like: http://www.soaplite.com/
I have used this approach to integrate C/C++ programs without using JNI.

3) Use a JNI library like JPL:
http://oreilly.com/catalog/prkunix/info/more_jpl.html
I have not used the above.
I have avoided using JNI because of deployment issues. You need the
right libraries in places, etc.
I have worked in several companies where the network/deployment group
could hardly manage to get Java working correctly.

4) Use JNI directly:
No comment.

5) Use CORBA:
Maybe an option if you already have a compatible ORB present on your
network.

HTH,
Eugene

Maudrit Martinez wrote:
> MJUG,
>
> I'm looking for a reliable and scalable way to invoke Perl from Java.
>
> Do you know about any framework or libraries?
>
>


--
Eugenio Alvarez
MotionPoint Corporation
4661 Johnson Rd. Suite 14
Coconut Creek, FL 33073
www.MotionPoint.com
954.354.5854 (office direct)
954.421.0890 x5854 (office)
954.421.0247 (fax)

J. G. Zambrano

unread,
Sep 18, 2008, 6:21:28 PM9/18/08
to discussio...@googlegroups.com
Eugenio,

This is Julio Zambrano, how are you doing these days??

Julio

Reply all
Reply to author
Forward
0 new messages