How to run Perl from Java

Hi, I have a program written in Perl. I want to run the Perl program using Java. If there is a command which can allow me to call the perl program from Java program, please advise me.regards
[234 byte] By [RakeshKumar] at [2007-9-26 1:32:59]
# 1
The most easy way is to use Runtime class to call "perl" to run your perl script.String sCmd = "c:\\yourPerlScriptLoc\\yourPerlScript.pl";Process p = Runtime.getRuntime().exec(sCmd);
sennaMom at 2007-6-29 1:34:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Sorry, forgot to add "perl" in sCmd.String sCmd = "perl c:\\yourPerlScriptLoc\\yourPerlScript.pl";Process p = Runtime.getRuntime().exec(sCmd);
sennaMom at 2007-6-29 1:34:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
Thankx for the reply. I was trying out the same thing yesterday, but was not able to get it right.Thankx again
RakeshKumar at 2007-6-29 1:34:51 > top of Java-index,Java HotSpot Virtual Machine,Specifications...