calling a java class from a perl script

Hi,I'm writing a perl script in linux and trying to get it to call a java class with a numeric parameter (long) and get a numeric value in return (int).Is that even possible?
[196 byte] By [Pseudonyma] at [2007-10-2 15:28:20]
# 1
Just put a main in it and call it like a normal java app, accepting the parameter. Set the exit code to the return value; and you can trap it within the pearl.
QldKeva at 2007-7-13 14:48:25 > top of Java-index,Java Essentials,Java Programming...
# 2

> Just put a main in it and call it like a normal java

> app, accepting the parameter. Set the exit code to

> the return value; and you can trap it within the

> pearl.

Sure that'd do it. Just understand that in calling your one method you've got to start the JVM and load all 30-40 MBytes into memory for that single call.

tjacobs01a at 2007-7-13 14:48:25 > top of Java-index,Java Essentials,Java Programming...